Time : 13:09: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 '' at line 1 Raw SQL : select ipaddress from p_customers where customerid= Time : 07:25:46 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 'PAGENO=,DUMMYPAGENO=,UPDATEDDATE='2017-09-07 12:55:46' where SUBORDERSID=16416' at line 1 Raw SQL : update suborders set TARRIF='12',AMOUNT='1200',discount='58.00',discountamount='696.00',netamount='504.00',MAGZINEEDITIONS='156',ISPAGEFIX=,PAGENO=,DUMMYPAGENO=,UPDATEDDATE='2017-09-07 12:55:46' where SUBORDERSID=16416