Fatal error: Uncaught Exception: Error: Unknown column 'p.quantity' in 'order clause'<br />Error No: 1054<br />SELECT ovd.name AS name, po.product_option_id, pov.product_option_value_id as product_option_value_id, ov.image
FROM oc_product_option po
INNER JOIN oc_option_description od ON po.option_id = od.option_id
INNER JOIN oc_product_option_value pov ON po.option_id = pov.option_id AND po.product_option_id = pov.product_option_id
INNER JOIN oc_option_value_description ovd ON ovd.option_value_id = pov.option_value_id
INNER JOIN oc_option_value ov ON ov.option_value_id = pov.option_value_id
WHERE pov.product_id = 9 AND od.option_id = 2 AND pov.quantity >= 0 AND od.language_id = 1 ORDER BY IF(p.quantity > 0, 0, 1), ovd.name ASC LIMIT 0,1 in /var/www/clients/client1/web2/web/system/library/db/mysqli.php:40
Stack trace:
#0 /var/www/clients/client1/web2/web/system/library/db.php(45): in /var/www/clients/client1/web2/web/system/library/db/mysqli.php on line 40