don't add empty string to select field of query