forked from science-ation/science-ation
Fix judges query for judges not active this year
This commit is contained in:
parent
35276b7475
commit
69849468ce
@ -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' AND judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"),
|
||||
"SELECT judges.id, firstname, lastname, email FROM judges WHERE id NOT IN (SELECT judges_id FROM judges_years WHERE year='".$config['FAIRYEAR']."') AND judges.deleted='no' 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"),
|
||||
|
Loading…
Reference in New Issue
Block a user