Time : 15:36: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 mt.MASTERTRANSACTIONID=' at line 4 Raw SQL : select mt.REFERENCENO,mt.NARRATIONS,mt.AUTOVOUCHERNO,al.NAME,al.ISITPARTY,t.MASTERDRCR,t.TRANSACTIONID,mt.TRANSACTIONDATE,t.subamount,t.INSTRUMENTDATE,t.REFERENCENO as instno,t.NARRATIONS as transnarration from mastertransaction mt inner join transaction t on mt.MASTERTRANSACTIONID=t.MASTERTRANSACTIONID inner join accountledger al on al.ACCOUNTLEDGERID=t.ACCOUNTLEDGERID where ACCOUNTVOUCHERTYPEID= and mt.MASTERTRANSACTIONID= Time : 14:02:23 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 : 11:59:42 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 'order by NAME asc' at line 1 Raw SQL : select COUNTRYSTATECITYID,NAME from countrystatecity where PARENTID= order by NAME asc Time : 11:59:33 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 'order by NAME asc' at line 1 Raw SQL : select COUNTRYSTATECITYID,NAME from countrystatecity where PARENTID= order by NAME asc Time : 09:32:23 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 productId,productName from product where category= Time : 09:11:53 SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'CREATEDBY' cannot be null Raw SQL : insert into businesstype(CREATEDDATE,CREATEDBY,UPDATEDBY,UPDATEDDATE,PARTY,BUSINESSTYPE) values(:CREATEDDATE,:CREATEDBY,:UPDATEDBY,:UPDATEDDATE,:PARTY,:BUSINESSTYPE) Time : 08:27:01 SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query Raw SQL : select distinct p.NAME,p.PARTYCODE,c.ADD1,c.ADD2,c.ADD3,concat(ifnull(c.add2,''),' ',ifnull(c.add3,'')) add2,csc.CODE,csc.NAME cityname,country.NAME countryname,cstate.NAME statename,cstate.shortname,district.NAME districtname,country.name country,c.PINCODE,concat(c.STDCODE,c.PHONE) PHONE,person.NAME cpname,ifnull(person.MOBILENO,c.mobile) MOBILENO ,min(person.CONTACTPERSONID),p.partyid, ms.VALUE as cpgreeting,mspg.VALUE as partygreeting from partydetail p inner join subscription sub on sub.PARTY = p.PARTYID left outer join magzinedetail m on m.MAGZINEDETAILID = sub.MAGZINENAME left outer join magzineeditions me on m.MAGZINEDETAILID = me.MAGZINEDETAIL left outer join contactperson person on person.PARTY = p.PARTYID left outer join dealsin dl on dl.PARTY=p.PARTYID left outer join master ms on ms.MASTERID=person.greeting left outer join master mspg on mspg.MASTERID=p.GREETING inner join contact c on p.PARTYID = c.PARTY left outer join countrystatecity csc on c.CITY = csc.COUNTRYSTATECITYID left outer join countrystatecity cstate on c.state =cstate.countrystatecityid left outer join countrystatecity district on csc.PARENTID = district.COUNTRYSTATECITYID left outer join countrystatecity country ON cstate.PARENTID =country.COUNTRYSTATECITYID where 1=1 and c.addresstype=350 and sub.mgznpostbyid=2 group by p.partyid order by cstate.CODE,district.CODE,csc.CODE asc