Can't perform query on database. Error: 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 op2.order_product_timestamp > DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
' at line 6 SQL: SELECT op.product_id
FROM order_product op
WHERE op.order_id IN (
SELECT op2.order_id
FROM order_product op2
WHERE op2.product_id IN ( )
AND op2.order_product_timestamp > DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
)
AND op.order_product_timestamp > DATE_SUB(CURDATE(), INTERVAL 3 MONTH)
AND op.product_id NOT IN ( )
GROUP BY op.product_id
ORDER BY SUM(op.order_product_quantity) DESC LIMIT 0, 2