Time : 08:22:19 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 NAME from partydetail where PARTYID= Time : 08:22:11 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 NAME from partydetail where PARTYID= Time : 08:21:50 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 NAME from partydetail where PARTYID= Time : 08:21:41 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 NAME from partydetail where PARTYID= Time : 08:21:41 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 NAME from partydetail where PARTYID= Time : 06:20:41 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ab.mgznpostbyid' in 'where clause' Raw SQL : select p.PARTYCODE, p.NAME,co.ADD1,co.ADD2,co.ADD3,co.PINCODE,co.PHONE,cscc.NAME as cityname,cscd.NAME as districtname,cscc.CODE,cscs.shortname ,cscs.NAME as statename,cscco.NAME as countryname, cp.NAME as cpname,cp.MOBILENO, ms.VALUE as cpgreeting,mspg.VALUE as partygreeting from partydetail p inner join contact co on p.PARTYID=co.PARTY left outer join contactperson cp on cp.PARTY=p.PARTYID left outer join countrystatecity cscc on cscc.COUNTRYSTATECITYID=co.CITY left outer join countrystatecity cscd on cscd.COUNTRYSTATECITYID=co.DISTRICT left outer join countrystatecity cscs on cscs.COUNTRYSTATECITYID=co.STATE inner join countrystatecity cscco on cscco.COUNTRYSTATECITYID=co.COUNTRY left outer join master ms on ms.MASTERID=cp.greeting left outer join master mspg on mspg.MASTERID=p.GREETING where 1=1 and ab.mgznpostbyid=1 and co.addresstype=350 and ISCANCEL is null group by p.PARTYID order by cscs.CODE,cscc.CODE asc Time : 06:20:21 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ab.mgznpostbyid' in 'where clause' Raw SQL : select p.PARTYCODE, p.NAME,co.ADD1,co.ADD2,co.ADD3,co.PINCODE,co.PHONE,cscc.NAME as cityname,cscd.NAME as districtname,cscc.CODE,cscs.shortname ,cscs.NAME as statename,cscco.NAME as countryname, cp.NAME as cpname,cp.MOBILENO from partydetail p inner join contact co on p.PARTYID=co.PARTY left outer join contactperson cp on cp.PARTY=p.PARTYID left outer join countrystatecity cscc on cscc.COUNTRYSTATECITYID=co.CITY left outer join countrystatecity cscd on cscd.COUNTRYSTATECITYID=co.DISTRICT left outer join countrystatecity cscs on cscs.COUNTRYSTATECITYID=co.STATE left outer join countrystatecity cscco on cscco.COUNTRYSTATECITYID=co.COUNTRY where 1=1 and ab.mgznpostbyid=1 and co.addresstype=350 and ISCANCEL is null group by p.PARTYID order by cscs.CODE,cscc.CODE asc