Surround the query with parentheses if it isn't already