1064 - 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 pr.manufacturers_id in (0,78) and (pr.categories_id > "0" or pr.manufactur' at line 1

select avg(rating) as rating from product_review pr inner join product_review_rating prr on prr.review_id=pr.review_id where (pr.products_id="6312" or (pr.categories_id in (0,) and pr.manufacturers_id in (0,78) and (pr.categories_id > "0" or pr.manufacturers_id > "0")) or pr.unique_identifiers like "%10006312%")and pr.approved="1"

[TEP STOP]