SELECT DISTINCT p.id, p.name, p.url, p.code, p.discount, p.date_created, p.online_exclus FROM products p LEFT JOIN brands b ON b.id = p.brand_id LEFT JOIN categories_link c_l ON c_l.product_id = p.id LEFT JOIN categories c ON c.id = c_l.cat_id LEFT JOIN subcategories_link sc_l ON sc_l.product_id = p.id LEFT JOIN subcategories sc ON sc.id = sc_l.subcat_id LEFT JOIN suboptions_link sol ON sol.product_id = p.id LEFT JOIN suboptions so ON sol.subcat_id = so.id WHERE p.hide=0 AND c.hide=0 AND b.hide=0 AND c.domain_id=82 AND p.id IN () ORDER BY p.orderid LIMIT 24
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 ') ORDER BY p.orderid LIMIT 24' at line 1 Fatal error: Cannot break/continue 1 level in /var/www/vhosts/anthonyryans.ie/old.anthonyryans.com/classes/dao.php on line 52