Неверный запрос SELECT COUNT(id) as cnt_item FROM catalog_models WHERE brand_id IN () and is_show=1 and parent_model = 0 ORDER BY sort asc
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 is_show=1 and parent_model = 0 ORDER BY sort asc' at line 1