We don't need to check if a distinct field is in the select. It should be perfectly valid query even if it isn't part of select.