Fatal error: Uncaught exception 'ErrorException' with message 'Error: Unknown column 'grade' in 'order clause'<br />Error No: 1054<br />SELECT COUNT(*) AS total FROM ( SELECT DISTINCT p.product_id FROM oc_product p LEFT JOIN ( SELECT op.product_id, COUNT(op.product_id) AS sales_volume FROM oc_order_product op GROUP BY op.product_id) op ON (op.product_id = p.product_id) LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN ( SELECT product_id,ROUND(AVG(rating)) AS rating,COUNT(review_id) AS review_num FROM oc_review r1 WHERE r1.status=1 GROUP BY r1.product_id ) rv ON rv.product_id = p.product_id WHERE pd.language_id = '1' AND p2s.store_id = '0' AND p.status = 1 AND p.display = 1 AND pd.name LIKE '%bundle%' AND pd.name LIKE '%indian%' ORDER BY grade DESC ) tb' in /var/www/max/syst in /var/www/max/system/database/mysqli.php on line 41