Fatal error: Uncaught exception 'Exception' with message 'Error: 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 ') GROUP BY p.product_id ORDER BY p.viewed DESC ' at line 9<br />Error No: 1064<br /> SELECT COUNT(mv.product_id) as total FROM ( SELECT DISTINCT p.product_id FROM oc_product p LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND (p.date_added >= NOW() - INTERVAL MONTH AND p.date_added <= NOW()) GROUP BY p.product_id ORDER BY p.viewed DESC ) mv ' in /home/fedorby/public_html/system/library/db/mysqli.php:45 Stack trace: #0 /home/fedorby/public_html/system/library/db.php(21): DB\MySQLi->query('\r\n SEL...', Array) #1 /h in /home/fedorby/public_html/system/library/db/mysqli.php on line 45