Fatal error: Uncaught Exception: Error: Unknown column 'p.quantity' in 'order clause'<br />Error No: 1054<br />SELECT p.product_id, (SELECT AVG(rating) FROM `oc_review` r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM (SELECT product_id, date_available FROM `oc_product` p1 WHERE p1.status = '1' AND p1.product_id = (SELECT p1.product_id FROM `oc_product_to_store` WHERE p1.product_id = product_id AND date_available >= '2024-10-22' AND date_available <= NOW() AND store_id = '0') GROUP BY p1.product_id ORDER BY p1.date_available DESC, p1.product_id DESC LIMIT 0, 30) as p LEFT JOIN `oc_product_description` pd ON (p.product_id = pd.product_id) WHERE pd.language_id = '1' GROUP BY p.product_id ORDER BY (p.quantity > 0) DESC, p.date_available DESC, LCASE(pd.name) ASC LIMIT 0, 30 in /var/www/lesok_com_ua_usr/data/www/lesok.com.ua/storage/modification/system/library/db/mysqli.php:44 Stack trace: #0 /var/www/lesok_com_ua_usr/data/www/lesok.com.ua/system/library/db.php(45): DB\MySQLi->qu in /var/www/lesok_com_ua_usr/data/www/lesok.com.ua/storage/modification/system/library/db/mysqli.php on line 44