Time : 11:10: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 'and NAME='Kay's Automobiles (India)'' at line 1 Raw SQL : select NAME,CITY,PARTYID from partydetail,contact where PARTYID=PARTY and CITY= and NAME='Kay's Automobiles (India)' Time : 11:09:49 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 's Automobiles (India)' and ADD1='16, State Bank Street'' at line 1 Raw SQL : select PARTYID from partydetail,contact where PARTYID=PARTY and CITY=1636 and NAME='Kay's Automobiles (India)' and ADD1='16, State Bank Street' Time : 09: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 'Rings'' at line 1 Raw SQL : select NAME,CITY,PARTYID from partydetail,contact where PARTYID=PARTY and CITY=1636 and NAME='Hydraulic Seals & O' Rings' Time : 09:17:04 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 'rings'' at line 1 Raw SQL : select NAME,CITY,PARTYID from partydetail,contact where PARTYID=PARTY and CITY=1636 and NAME='Hydraulic Seals & O'rings' Time : 05:25:46 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=