prova a fare un mysq_error sul risultato di mysql_query.