Al 99% la query fallisce.

Aggiungi "or die(mysql_error());" dopo mysql_query()