SQL: SELECT i.*,ii.subject as weixinname FROM `[Table]spacearticles`i left join `[Table]spaceitems`ii on i.itemid=ii.itemid WHERE i.catid in (0,) and i.top=1 order by i.dateline DESC LIMIT 0,10 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 i.top=1 order by i.dateline DESC LIMIT 0,10' at line 1 Errno.: 1064