Escape single quote in query