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 ',4698) limit 0,3' at line 1 SELECT * FROM catalog WHERE id IN (4663,4938,,4698) limit 0,3