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 'and (date_start <='2024-04-20' or date_end >='2024-04-20') limit 0,1' at line 1<br />Error No: 1064<br />SELECT * from `oc_product_discount` where product_id = and (date_start <='2024-04-20' or date_end >='2024-04-20') limit 0,1 in /home/mspwebstore/public_html/system/library/db/mysqli.php:40
Stack trace:
#0 /home/mspwebstore/public_html/system/library/db.php(25): DB\MySQLi->query('SELECT * from `...')
#1 /home/mspwebstore/public_html/catalog/model/catalog/product.php(11): DB->query('SELECT * from `...')
#2 /home/mspwebstore/storage/modification/system/engine/loader.php(248): ModelCatalogProduct->getProduct(181)
#3 /home/mspwebstore/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#4 /home/mspwebstore/public_html/catalog/controller/product/product.php(164): Proxy->__call('getProduct', Array)
#5 /home/mspwebstore/storage/modifi in /home/mspwebstore/public_html/system/library/db/mysqli.php on line 40