try to fix escaping in query - minor3