- Load from the sponsor table, instead of the awards_sponsor table

This commit is contained in:
dave 2009-01-21 18:33:46 +00:00
parent f39b01d4c2
commit 59c2809ef5

View File

@ -96,14 +96,14 @@ if($_SESSION['embed'] == true) {
$q=mysql_query("SELECT award_awards.id,
award_awards.name,
award_awards.criteria,
award_sponsors.organization
sponsors.organization
FROM
award_awards,
award_types,
award_sponsors
sponsors
WHERE
award_types.id=award_awards.award_types_id
AND award_sponsors.id=award_awards.award_sponsors_id
AND sponsors.id=award_awards.sponsors_id
AND (award_types.type='Special' OR award_types.type='Other')
AND award_awards.year='{$config['FAIRYEAR']}'
AND award_types.year='{$config['FAIRYEAR']}'