Question: was the DISTINCT clause here removed for a reason? (I'm just reading the code, not trying it, so I don't know if it actually works.)