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 ',4449,651,1185,256) order by newstime' at line 1 select id,classid,tagid from ***_moretags_cidian_zuci where tagid in(5562,4600,22,1328,,,4449,651,1185,256) order by newstime