Query Error: select * from pw_newsphoto where class= and ifcheck=1 order by oldtime desc limit 11;

The URL Is:
http://www.chinesetown.co.nz/photo_html.php?aid=53738

MySQL Server Error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and ifcheck=1 order by oldtime desc limit 11' at line 1 ( 1064 )

You Can Get Help In:
http://www.Chinesetown.co.nz