This might sound too simple, but can you delete the WHERE clause and retype it from scratch instead of editing/pasting into the existing box? The error suggests there's a hidden character (likely a non-breaking space) around the OR that isn't visible...