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 ') or (maxPrice<= and maxPrice>=4s) or (minPrice<=4s and maxPrice>=)) order by i' at line 1