Mach mal im Query das Semikolon ; weg manchmal verursacht das Probleme, ansonsten mach mal ein
or die(mysql_error())
dahinter.

Gruß
Gremlin