diff --git a/admin/reports_judges.inc.php b/admin/reports_judges.inc.php index f53c0f07..a00e97af 100644 --- a/admin/reports_judges.inc.php +++ b/admin/reports_judges.inc.php @@ -172,7 +172,8 @@ function report_judges_team_members(&$report, $field, $text) $judges_teams_id = $text; $q = mysql_query("SELECT * FROM judges_teams_link LEFT JOIN users ON judges_teams_link.users_id=users.id - WHERE judges_teams_link.year='$year'"); + WHERE judges_teams_link.year='$year' + AND judges_teams_link.judges_teams_id='$judges_teams_id'"); $ret = ''; while( ($m = mysql_fetch_assoc($q))) { $add = false;