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 ',3,4,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,24 LIMIT 0, 1' at line 1 SQL=SELECT * FROM careerspot_jobs.portfolio WHERE id=1,3,4,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,24 LIMIT 0, 1