diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 04aba1b..f3a4963 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -573,7 +573,7 @@ function pr_judge(&$jt, $jid) /* Find the maximum judging team number */ -$q = mysql_query("SELECT MAX(num) as max FROM judges_teams"); +$q = mysql_query("SELECT MAX(num) as max FROM judges_teams WHERE year='{$config['FAIRYEAR']}'"); $r = mysql_fetch_object($q); $max_jteam_num = $r->max;