Warning: pg_query(): Query failed: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list LINE 1: ...())) GROUP BY ps.product_id,p.sort_order ORDER BY p.sort_ord... ^ in /opt/clear/www/pellissier/opencart/system/library/db/pgsql.php on line 98SQL ERR: SELECT DISTINCT ps.product_id, (SELECT AVG(rating) FROM oc_review r1 WHERE r1.product_id = ps.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.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) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND ps.customer_group_id = '1' AND ((ps.date_start = '2010-01-01' OR ps.date_start < NOW()) AND (ps.date_end = '2010-01-01' OR ps.date_end > NOW())) GROUP BY ps.product_id,p.sort_order ORDER BY p.sort_order ASC, LOWER(pd.name) ASC LIMIT 12 OFFSET 0