A quote without a matching quote was found in a command sent to the SQL Engine. You may use either single or double quotes
around character strings. If a single quote is to appear within a string, surround the string with double quotes. For example:
select * from employee where lname = 'O'Brien' and st = ''VA''
should be changed to:
select * from employee where lname = ''O'Brien'' and st = ''VA''