Bug 21249: (follow-up) Adding parentheses to fix query