Database query failed: 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 IF(`product_price_discount`>0,`product_price_discount` BETWEEN '0' AND '9...' at line 4