When I try to print_r mysql_fetch_array of a sql query, I get this result.
Array ( [0] => 1 [id] => 1 [1] => 2011 [publish_date] => 2
Use mysql_fetch_assoc function
or
Use second parameter for mysql_fetch_array function: MYSQL_ASSOC