Time : 11:55:18 SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rootid' in 'where clause' Raw SQL : select chennalid,chennalName from chennal where rootid>1 order by chennalName Time : 11:26:02 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 NAME='Oster Auto Industries'' at line 1 Raw SQL : select NAME,CITY,PARTYID from partydetail,contact where PARTYID=PARTY and CITY= and NAME='Oster Auto Industries'