distinct clause doesn't match with order by clause - is the order by clause required?