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 '372,374,396,553,590,1684,1687,2792,3217,3224,289,292,547,586,1683) AND id NOT in' at line 1