diff --git a/admin/communication.inc.php b/admin/communication.inc.php index 0421f08..9f38dd4 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -36,14 +36,14 @@ "special_award_sponsors_all"=>array("name"=>"Special award sponsors (all)","query"=> "SELECT DISTINCT(award_sponsors.id), organization, firstname, lastname, award_contacts.email FROM award_sponsors, award_awards, award_contacts WHERE award_awards.award_sponsors_id=award_sponsors.id AND award_contacts.award_sponsors_id=award_sponsors.id AND award_awards.award_types_id='2'"), "school_principals"=>array("name"=>"School principals","query"=> - "SELECT school, principal AS name, schoolemail AS email FROM schools WHERE schools.year='".$config['FAIRYEAR']."' AND schoolemail!=''"), + "SELECT school, principal AS firstname, schoolemail AS email FROM schools WHERE schools.year='".$config['FAIRYEAR']."' AND schoolemail!=''"), "school_scienceheads"=>array("name"=>"School science heads","query"=> - "SELECT school, sciencehead AS name, scienceheademail AS email FROM schools WHERE schools.year='".$config['FAIRYEAR']."' AND scienceheademail!=''"), + "SELECT school, sciencehead AS firstname, scienceheademail AS email FROM schools WHERE schools.year='".$config['FAIRYEAR']."' AND scienceheademail!=''"), "school_teachers_thisyear"=>array("name"=>"Teachers (as entered by students) this year","query"=> - "SELECT DISTINCT(teacheremail) AS email, teachername AS name FROM students WHERE year='".$config['FAIRYEAR']."' AND teacheremail!=''"), + "SELECT DISTINCT(teacheremail) AS email, teachername AS firstname FROM students WHERE year='".$config['FAIRYEAR']."' AND teacheremail!=''"), "school_teachers_lastyear"=>array("name"=>"Teachers (as entered by students) last year","query"=> - "SELECT DISTINCT(teacheremail) AS email, teachername AS name FROM students WHERE year='".($config['FAIRYEAR']-1)."' AND teacheremail!=''"), + "SELECT DISTINCT(teacheremail) AS email, teachername AS firstname FROM students WHERE year='".($config['FAIRYEAR']-1)."' AND teacheremail!=''"), "school_teachers_allyears"=>array("name"=>"Teachers (as entered by students) all years","query"=> - "SELECT DISTINCT(teacheremail) AS email, teachername AS name FROM students WHERE teacheremail!=''"), + "SELECT DISTINCT(teacheremail) AS email, teachername AS firstname FROM students WHERE teacheremail!=''"), ); ?>