added DISTINCT to SelectQuery