Fixed Deposit Rates in Banks, Term Deposit Rates in Banks : Ratekhoj.com 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 '&& all>=`mindays`) || (`maxdays`>=all && all>=`mindays`) || (`maxdays`<=all && a' at line 1