Oops missed an AND

This commit is contained in:
james 2009-02-16 23:32:02 +00:00
parent b8c9d10be0
commit 7cbd70577e

View File

@ -10,7 +10,7 @@
"SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted!='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id ORDER BY email"),
"judges_inactive"=>array("name"=>"Judges not active for this year", "query"=>
"SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges LEFT JOIN judges_years ON judges_years.judges_id=judges.id WHERE judges.deleted!='no' judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"),
"SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges LEFT JOIN judges_years ON judges_years.judges_id=judges.id WHERE judges.deleted!='no' AND judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"),
"judges_active_complete_thisyear"=>array("name"=>"Judges active for this year and complete", "query"=>
"SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted!='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete='yes' ORDER BY email"),