Time : 18:18:06 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='2017-06-04 23:48:06' where ADVERTISEBOOKINGID= and MAGZINEEDITIONS>=2134