i\'m doing a simple query here and it returns that column \'Mary\' does not exist:
SELECT telephone.telephonenumber as tel FROM person, telephone WHERE
Make sure that you are quoting your string correctly.
From your snippet, I'd say that's the problem here since you're using something else than simple single quotes.
Use plain single quotes to delimit a string literal 'Mary' not smart quotes ‘Mary’
'Mary'
‘Mary’