Invalid query:
select count(__id) as cnt from CatItems
where
CatItems.Category IN() AND
CatItems.Created='1' AND
CatItems.Language='1' AND
CatItems.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
CatItems.Created='1' AND
CatItems.Language='1' AND
' at line 3