Ambigous id field in function getDuplicateQuery

$focus->add_team_security_where_clause($query); lead the query to fail because field id is ambigous as it's contained in both teams and leads tables.