Warning: mysqli::query(): (42000/1064): 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 ')' at line 1 in /home/dinfo/public_html/thebeautyband/system/library/db/mysqli.php on line 25
Fatal error: Uncaught Exception: 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 ')' at line 1<br />Error No: 1064<br />SELECT COUNT(DISTINCT p.product_id) AS total FROM bb_product_to_category p2c LEFT JOIN bb_product p ON (p2c.product_id = p.product_id) LEFT JOIN bb_manufacturer ms ON (p.manufacturer_id = ms.manufacturer_id) LEFT JOIN bb_product_option_value pov ON (p.product_id = pov.product_id) LEFT JOIN bb_tax_rule trr ON ( trr.tax_class_id = p.tax_class_id ) LEFT JOIN bb_tax_rate tr ON ( tr.tax_rate_id = trr.tax_rate_id ) LEFT JOIN bb_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN bb_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND((p.price > '0.0000' or pov.price > '0.0000') AND p.image !='catalog/demo_product.png') AND tr.tax_rate_id = 88 AND p2c.category_id IN () in /home/dinfo/public_html/thebeautyband/system/library/db/mysqli.php:49
Stack trace:
#0 /home/dinfo/public_html/thebeautyband/system/library/db.php(52): DB\MySQLi->query('SELECT COUNT(DI...')
#1 /home/dinfo/public_html/thebeautyband/system/storage/modification/catalog/model/catalog/product.php(1024): DB->query('SELECT COUNT(DI...')
#2 /home/dinfo/public_html/thebeautyband/system/storage/modification/system/engine/loader.php(251): ModelCatalogProduct->getTotalProducts(Array)
#3 /home/dinfo/public_html/thebeautyband/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#4 /home/dinfo/public_html/thebeautyband/catalog/controller/product/category.php(248): Proxy->__call('getTotalProduct...', Array)
#5 /home/dinfo/public_html/thebeautyband/system/storage/modification/system/engine/action.php(79): ControllerProductCategory->index()
#6 /home/dinfo/public_html/thebeautyband/catalog/controller/startup/router.php(27): Action->execute(Object(Registry))
#7 /home/dinfo/public_html/thebeautyband/system/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index()
#8 /home/dinfo/public_html/thebeautyband/system/engine/router.php(67): Action->execute(Object(Registry))
#9 /home/dinfo/public_html/thebeautyband/system/engine/router.php(56): Router->execute(Object(Action))
#10 /home/dinfo/public_html/thebeautyband/system/framework.php(179): Router->dispatch(Object(Action), Object(Action))
#11 /home/dinfo/public_html/thebeautyband/system/startup.php(105): require_once('/home/dinfo/pub...')
#12 /home/dinfo/public_html/thebeautyband/index.php(19): start('catalog')
#13 {main}
thrown in /home/dinfo/public_html/thebeautyband/system/library/db/mysqli.php on line 49