Exactly, m1l,

you don't need the distinct anyway with the group by.