Database working error Server Message: 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 '((p.price_type=1 and spec_time1<=1227392400 and
(!spec_time2 or spec_time2>=1' at line 6