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 tierTwo = 'M38'' at line 1<br />Error No: 1064<br />SELECT COUNT(*) as total FROM oc_partfamilies pm LEFT JOIN oc_product p ON pm.product_id=p.product_id WHERE pm.part_master='Yes' AND AND tierTwo = 'M38' in /home/steinjager/public_html/shop/system/library/db/mysqli.php:78
Stack trace:
#0 /home/steinjager/public_html/shop/system/library/db.php(92): DB\MySQLi->query('SELECT COUNT(*)...')
#1 /home/steinjager/public_html/shop/catalog/model/catalog/product.php(241): DB->query('SELECT COUNT(*)...')
#2 /home/steinjager/public_html/shop/system/engine/loader.php(248): ModelCatalogProduct->getProductsOfType(Array, true)
#3 /home/steinjager/public_html/shop/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#4 /home/steinjager/public_html/shop/catalog/controller/product/category.php(211): Proxy->__call('getProductsOfTy...', Array)
#5 /home/stein in /home/steinjager/public_html/shop/system/library/db/mysqli.php on line 78