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 'and b.id not in (4582,28,44,59,29,45,60,30,46,31,47,32,28508,33,257374,34,49,35,' at line 1