fix in join statement construction for deeper relationships
use SELECT DISTINCT when given NSPredicate with NSAnyPredicateModifier