Veritabanında bir hata oluştu.

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `p`.`product_id` IN (0) AND `r`.`status` = 1' at line 5

SELECT COUNT(DISTINCT r.product_id) AS total, AVG(r.rating) AS rate FROM (`daynex_review` r) LEFT JOIN `daynex_product` p ON `r`.`product_id` = `p`.`product_id` LEFT JOIN `daynex_product_to_category` ptc ON `p`.`product_id` = `ptc`.`product_id` WHERE `ptc`.`category_id` IN () AND `p`.`product_id` IN (0) AND `r`.`status` = 1

Filename: /home/dayneks/public_html/models/site/review_model.php

Line Number: 30