Invalid query: SELECT * FROM CatItems WHERE __id IN (50016,50017,58399,60247,60248,102461,102462,35673,35674,35675,35676,35677,35678,331955,331956,331957,331958,331959,331960,331961,331962,331963,332057,332058,332059,332060,332061,332062,332063,332064,332065,332170,332171,332172,332173,332174,332175,332176,) AND Active=1
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 Active=1' at line 1