DB query escaping characters problem

Hello,
I am having problems with “Unrecognized token with SQL Lite”. The only thing that I am doing is this:

var addNew:String = 'INSERT INTO table (locations, typeString) VALUES ("'+_tempLocationAr*+'","'+_tempTypeStrAr*+'" )';

The problem is in the _tempTypeStrAr, but I don’t know what kind of character can cause it. _tempTypeStrAr consists of strings from a textField that are entered, it is the same situation in the _tempLocationAr. Have you encountered such error before?
Thank you in advance :slight_smile: