Notice: Undefined index: rating in /var/www/rostovsports/data/www/ on line 25Notice: Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND r1.status = '1' GROUP BY r1.product_id' at line 1
Error No: 1064
SELECT AVG(rating) AS total FROM oc_review r1 WHERE r1.product_id = AND r1.status = '1' GROUP BY r1.product_id in /var/www/rostovsports/data/www/ on line 68