Hai un errore nella query, quasi sicuramente.
Dovresti sempre usare 'or die(mysql_error())' in fondo ai comandi mysql