I have a problem which is same as Ronnie's and I've tried your solution and it works then. But I have a problem with the single qoute because some of my data contains the apostrophy ( ' ), therefore, where the query insert such data into the database, it shows error.
My query looks something like this:
INSERT INTO test (id, test) VALUES ('$id', '$test');
The $test variable may contains apostrophy ( ' )
I thought to change the ' ' to \"\" so that I could get around with the ' but then it shows the same error as previous, like, ERROR: Attribute "xxx" not found
Any idea of how can I get around with it ?
TIA.