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 ') and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001' at line 1
in:
[select sale_specials_condition, sale_deduction_value, sale_deduction_type from salemaker_sales where () and sale_status = '1' and (sale_date_start <= now() or sale_date_start = '0001-01-01') and (sale_date_end >= now() or sale_date_end = '0001-01-01') and (sale_pricerange_from <= '218.0000' or sale_pricerange_from = '0') and (sale_pricerange_to >= '218.0000' or sale_pricerange_to = '0')]