Fix the divisions query to query the divisions from this year properly

This commit is contained in:
james 2005-11-26 18:59:44 +00:00
parent e8353f011f
commit a4faab66e0

View File

@ -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))
{