since our host upgraded to php3

we have this erro with most of the users:

AND userid <>
mysql error: You have an error in your SQL syntax near '' at line 4...