Time : 12:48:04 SQLSTATE[42000]: Syntax error or access violation: 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 NAME='DYNAMATIC FILTRATIONS'' at line 1 Raw SQL : select NAME,CITY,PARTYID from partydetail,contact where PARTYID=PARTY and CITY= and NAME='DYNAMATIC FILTRATIONS' Time : 11:31:54 SQLSTATE[42000]: Syntax error or access violation: 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 MAGZINEEDITIONS>=2134' at line 1 Raw SQL : update suborders set ISCANCEL=1,CANCELDATE='',UPDATEDDATE='2018-03-17 17:01:54' where ADVERTISEBOOKINGID= and MAGZINEEDITIONS>=2134 Time : 06:09:48 SQLSTATE[42000]: Syntax error or access violation: 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 1 Raw SQL : select ipaddress from p_customers where customerid=