Notice: Error: Expression #2 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'ndtbraz1_SBazData.pd.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Error No: 1055
SELECT DISTINCT ps.product_id, (SELECT AVG(rating) FROM yib_review r1 WHERE r1.product_id = ps.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM yib_product_special ps LEFT JOIN yib_product p ON (ps.product_id = p.product_id) LEFT JOIN yib_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN yib_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 = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) GROUP BY ps.product_id ORDER BY p.sort_order ASC, LCASE(pd.name) ASC LIMIT 0,15 in /home/ndtbraz1/public_html/system/database/mmysqli.php on line 19