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 '' at line 6

select MAX(`p`.`products_price` * ((100 + if(`p`.`products_tax_class_id` != 0,(select sum(tax_rate) from tax_rates),0)) / 100)) AS `max_price`, MIN(`p`.`products_price` * ((100 + if(`p`.`products_tax_class_id` != 0,(select sum(tax_rate) from tax_rates),0)) / 100)) AS `min_price` from products p LEFT JOIN tax_rates tr on p.products_tax_class_id = tr.tax_class_id where

[TEP STOP]