diff --git a/admin/reports_awards.inc.php b/admin/reports_awards.inc.php index d270ab6..9d29f8b 100644 --- a/admin/reports_awards.inc.php +++ b/admin/reports_awards.inc.php @@ -249,12 +249,10 @@ $report_awards_fields = array( $q = " FROM award_awards LEFT JOIN award_sponsors ON ( - award_sponsors.id=award_awards.award_sponsors_id - AND award_sponsors.year=award_awards.year) + award_sponsors.id=award_awards.award_sponsors_id) LEFT JOIN award_types ON award_types.id=award_types_id LEFT JOIN award_contacts AS PRIMARYCONTACT ON ( PRIMARYCONTACT.award_sponsors_id=award_sponsors.id - AND PRIMARYCONTACT.year=award_awards.year AND PRIMARYCONTACT.`primary`='yes') $judges_join $judges_members_join