Fatal error: Uncaught exception 'Exception' with message '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 'AND p.manufacturer_id = '51'' at line 1<br />Error No: 1064<br />SELECT COUNT(DISTINCT p.product_id) AS total FROM product p AND p.manufacturer_id = '51'' in /home/u4393/domains/mtdv.eu/system/library/db/mysqli.php:40
Stack trace:
#0 /home/u4393/domains/mtdv.eu/system/library/db.php(16): DB\MySQLi->query('SELECT COUNT(DI...', Array)
#1 /home/u4393/domains/mtdv.eu/catalog/model/catalog/product.php(300): DB->query('SELECT COUNT(DI...')
#2 [internal function]: ModelCatalogProduct->getTotalProducts(Array)
#3 /home/u4393/domains/mtdv.eu/system/engine/loader.php(178): call_user_func_array(Array, Array)
#4 [internal function]: Loader->{closure}(Array, Array)
#5 /home/u4393/domains/mtdv.eu/system/engine/proxy.php(25): call_user_func_array(Object(Closure), Array)
#6 /home/u4393/domains/mtdv.eu/catalog/controller/product/manufacturer in /home/u4393/domains/mtdv.eu/system/library/db/mysqli.php on line 40