Error Number: 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 `rating` >0 and `invoice_id` IN (select id from invoice where status=1) O...' at line 3
SELECT * FROM `invoice_products` WHERE `product_id` = `kinetics-shield-514`. and `rating` >0 and `invoice_id` IN (select id from invoice where status=1) ORDER BY `id` DESC
Filename: models/Index.php
Line Number: 355