diff --git a/admin/reports_judges.php b/admin/reports_judges.php index 1313a53..6aacbb8 100644 --- a/admin/reports_judges.php +++ b/admin/reports_judges.php @@ -73,7 +73,7 @@ $table['header']=array( i18n("ID"), //grab the list of divisions, because the last fields of the table will be the sub-divisions -$q=mysql_query("SELECT * FROM projectdivisions ORDER BY id AND year='".$config['FAIRYEAR']."'"); +$q=mysql_query("SELECT * FROM projectdivisions WHERE year='".$config['FAIRYEAR']."' ORDER BY id"); $divheadings=array(); while($r=mysql_fetch_object($q)) {