Remove superfluous DISTINCT()