Fatal error: Uncaught exception 'Exception' with message 'Error: Unknown column 'p2c.main_category' in 'where clause'<br />Error No: 1054<br /> SELECT p.product_id FROM oc_product p JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id AND p2s.store_id = '0') WHERE p.status = 1 AND ( p.product_id = ( SELECT p2.product_id FROM oc_product p2 WHERE p2.product_id < 2161 AND p2.status = '1' AND p2.quantity > 0 AND p2c.main_category = 1 AND p2.date_available <= NOW() ORDER BY p2.product_id DESC LIMIT 1 ) OR p.product_id = ( SELECT p3.product_id FROM oc_product p3 WHERE p3.product_id > 2161 AND p3.status = '1' AND p3.quantity > 0 AND p3c.main_category = 1 AND p3.date_available <= NOW() ORDER BY p3.product_id ASC LIMIT 1 )) ORDER BY p.product_id' in /home/uvape/uvape.pro/www/system/storage/modification/system/library/db/mysqli.php:47 Stack trace: #0 /home/uvape/uvape.pro/ in /home/uvape/uvape.pro/www/system/storage/modification/system/library/db/mysqli.php on line 47