Time : 19:35:24 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 : 19:35:08 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 : 19:34:59 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 : 19:34:52 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 : 09:48:43 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 : 09:43:25 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 : 09:32:59 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 : 09:05:24 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 : 08:51:45 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 : 05:19:20 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 : 02:44: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 'group by p.partyid order by cstate.CODE,district.CODE,csc.CODE asc' at line 36 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 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 left outer 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 left outer join ( select sub.PARTY partyid from partydetail p inner join subscription sub on sub.PARTY = p.PARTYID inner join magzinedetail m on m.MAGZINEDETAILID = ifnull(sub.MAGZINENAME,1) inner join magzineeditions me on m.MAGZINEDETAILID = me.MAGZINEDETAIL where 1=1 and sub.mgznpostbyid=1 and ifnull(iscancel,0) =0 and me.MAGZINEEDITIONSID = 188 and sub.fromDate <= me.DATEOFEDITIONS and ifnull(sub.toDate,me.DATEOFEDITIONS) >= me.DATEOFEDITIONS and (sub.iscontinue = 1 or ifnull(sub.isEom,me.isEom) = me.isEom) group by sub.SUBSCRIPTIONID ) a on p.PARTYID = a.partyid left outer join ( select ad.PARTY partyid from magzinedetail m inner join magzineeditions me on m.MAGZINEDETAILID = me.MAGZINEDETAIL inner join suborders s on s.MAGZINEEDITIONS = me.MAGZINEEDITIONSID inner join advertisementbooking ad on ad.ADVERTISEMENTBOOKINGID = s.ADVERTISEBOOKINGID where 1=1 and ad.mgznpostbyid=1 and s.ISCANCEL is null and s.MAGZINEEDITIONS= '188' group by ad.party ) ad on ad.partyid = p.PARTYID where 1=1 and co.addresstype=350 and ifnull(a.partyid,ifnull(ad.partyid,0)) != 0 and c.addresstype= group by p.partyid order by cstate.CODE,district.CODE,csc.CODE asc