Time : 12:48:10 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 count(SUBSCRIPTIONID) as totalnew_parties from partydetail as p,subscription as s,(select PARTY as prty,CITY,DISTRICT,STATE,COUNTRY from contact) as c where p.PARTYID=s.PARTY and s.PARTY=c.prty and PARTY=17823 order by Time : 12:45:14 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 count(SUBSCRIPTIONID) as totalnew_parties from partydetail as p,subscription as s,(select PARTY as prty,CITY,DISTRICT,STATE,COUNTRY from contact) as c where p.PARTYID=s.PARTY and s.PARTY=c.prty and PARTY=17823 order by Time : 12:42: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 count(SUBSCRIPTIONID) as totalnew_parties from partydetail as p,subscription as s,(select PARTY as prty,CITY,DISTRICT,STATE,COUNTRY from contact) as c where p.PARTYID=s.PARTY and s.PARTY=c.prty and PARTY=17823 order by Time : 11:46:38 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 AMOUNT from tarrifdetail where ID= Time : 11:46:35 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 AMOUNT from tarrifdetail where ID= Time : 11:46:34 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 AMOUNT from tarrifdetail where ID=