From 7cbd70577ef6fbb511f0ce0a8c8a242bee8e9750 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 16 Feb 2009 23:32:02 +0000 Subject: [PATCH] Oops missed an AND --- admin/communication.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index cd767545..d6bce06e 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -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"),