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 '2,5,6,7,12,13,14,15,16,17,18,19,20,21,22) and c.`delete_flag`="0" order by c.`cr' at line 1