There was an error running the query [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 DATEDIFF(b2c_products.expiry_date,CURDATE())>=0 AND b2c_products.active>0' at line 1]