title: select query and while loop doesn't return all rows correctly
body: <p>can you explain me why when i try this query it returns to me only half of rows?</p>
  
  <p>For example, if $records is made by 4 values it only get row 1 and 3 from DB.</p>
  
  <p>What's wrong?</p>
  
  <pre><code>                $query=mysql_query("SELECT * FROM ".DB_PREF."books WHERE book_id IN ('".$records."')");
                  while($fetch=mysql_fetch_assoc($query))
                  {
                      global $book_id, $book_title, $book_description, $book_author_id, $book_author_name, $book_author_surname;
                      $book_id=$fetch['book_id'];
                      $book_title=$fetch['book_title'];
                      $book_description=$fetch['book_description'];
                      $book_author_id=$fetch['book_author_id'];
                      $query=mysql_query("SELECT * FROM ".DB_PREF."profiles WHERE user_id='".$book_author_id."'");
                      $fetch=mysql_fetch_assoc($query);
                      $book_author_name=$fetch['user_name'];
                      $book_author_surname=$fetch['user_surname'];
                      getModule('htmlmodule...');
                  }
  </code></pre>