Fatal error: Uncaught Exception: Error: Unknown column 'p.quantity' in 'order clause'<br />Error No: 1054<br /> SELECT p.* FROM `oc_bf_tmp_product` AS p INNER JOIN `oc_product_description` AS pd ON (pd.product_id = p.product_id) WHERE match_filters = 1 AND pd.language_id = '1' ORDER BY CASE WHEN p.quantity > 0 THEN 1 ELSE 0 END DESC, pd.name ASC LIMIT 0, 15 in /home/g/gaz82/gaz82.ru/public_html/system/storage/modification/system/library/db/mysqli.php:47
Stack trace:
#0 /home/g/gaz82/gaz82.ru/public_html/system/storage/modification/system/library/db.php(69): DB\MySQLi->query(' SELECT p.* FRO...', Array)
#1 /home/g/gaz82/gaz82.ru/public_html/system/storage/modification/system/library/db.php(42): DB->query_(' SELECT p.* FRO...')
#2 /home/g/gaz82/gaz82.ru/public_html/system/storage/modification/catalog/model/catalog/product.php(139): DB->query(' SELECT p.* FRO...')
#3 [internal function]: ModelCatalogProduct->getProducts(Array)
#4 /home/g/gaz82/gaz82.ru/public_html/system/library/bus_cache/bus_cache.php(2945): call_user_func_ in /home/g/gaz82/gaz82.ru/public_html/system/storage/modification/system/library/db/mysqli.php on line 47