The DISTINCT was added to solve problems in postgres. This will probably re-trigger those issues.