Fixed random quote bug (again)

Turns out in SQL you need to escape apostrophes by adding another
apostrophe. The more you know.