Time : 07:18:44 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-02-07 12:48:44' where ADVERTISEBOOKINGID= and MAGZINEEDITIONS>=2134