Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND i.active=1 AND img.is_index=1 ORDER BY sort' at line 1
Error No: 1064
SELECT i.*, img.path as img FROM module_catalog_item i LEFT JOIN module_catalog_image img ON img.item_id=i.id WHERE category_id= AND i.active=1 AND img.is_index=1 ORDER BY sort