cannot mix distinct and not distinct