Fix query syntax error (escaped \)