Codice PHP:
$data mysql_query($query) or die("Errore ".mysql_error()); 
Vedi cosa ti dice.

e togli le " { "