( ! ) Fatal error: Uncaught Exception: 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 '' at line 1<br />Error No: 1064<br />SELECT COUNT(DISTINCT ps.product_id) AS total FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.product_id) 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 ps.customer_group_id = '1' AND ((s.date_start < NOW() AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW()) ) in /var/www/html/resto/jp_v_1_6/sakura69_fr/system/library/db/mysqli.php on line 40
( ! ) Exception: 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 '' at line 1<br />Error No: 1064<br />SELECT COUNT(DISTINCT ps.product_id) AS total FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.product_id) 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 ps.customer_group_id = '1' AND ((s.date_start < NOW() AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW()) ) in /var/www/html/resto/jp_v_1_6/sakura69_fr/system/library/db/mysqli.php on line 40
Call Stack
#TimeMemoryFunctionLocation
10.0001393600{main}( ).../index.php:0
20.0006405904require_once( '/var/www/html/resto/jp_v_1_6/sakura69_fr/system/framework.php' ).../index.php:22
30.0029460144Front->dispatch( ).../framework.php:99
40.0106662208Front->execute( ).../front.php:29
50.0106662208Action->execute( ).../front.php:34
60.0106663216ControllerStartupRouter->index( ).../action.php:44
70.0107663392Action->execute( ).../router.php:25
80.0898739952ControllerProductSpecial->index( ).../action.php:44
90.1509784400Proxy->getTotalProductSpecials( ).../special.php:97
100.1509784456Proxy->__call( ).../special.php:97
110.1509784456Loader->{closure:/var/www/html/resto/jp_v_1_6/sakura69_fr/system/engine/loader.php:131-166}( ).../proxy.php:13
120.1509784744ModelCatalogProduct->getTotalProductSpecials( ).../loader.php:153
130.1509785192DB->query( ).../product.php:542
140.1509785192DB\MySQLi->query( ).../db.php:16