I'm not sure, but it sounds like you're having problems with quotes. For example, this isn't valid:
select foo from bar where baz='I'm not sure'
Single quotes delimit a string in SQL, so if you want a string with single quotes in it, you must escape them by doubling the single quotes.
select foo from bar where baz='I''m not sure'