The fixed query in comment #3 does not seem to be live - edge is still timing out on the old query containing the unnecessary DISTINCT in the subquery.
The fixed query in comment #3 does not seem to be live - edge is still timing out on the old query containing the unnecessary DISTINCT in the subquery.