forked from science-ation/science-ation
Fix a bug where awards that didtn have a sponsor set didnt show up in the list, also, do the same for award types, though award types hsould never be empty...
This commit is contained in:
parent
c67488d375
commit
214df4ddbf
@ -979,16 +979,13 @@ $q=mysql_query("SELECT
|
||||
award_types.type,
|
||||
sponsors.organization
|
||||
FROM
|
||||
award_awards,
|
||||
award_types,
|
||||
sponsors
|
||||
award_awards
|
||||
LEFT JOIN sponsors ON sponsors.id = award_awards.sponsors_id
|
||||
LEFT JOIN award_types ON award_types.id = award_awards.award_types_id
|
||||
WHERE
|
||||
award_awards.year='{$config['FAIRYEAR']}'
|
||||
$where_asi
|
||||
$where_ati
|
||||
$where_asc
|
||||
AND award_awards.sponsors_id=sponsors.id
|
||||
AND award_awards.award_types_id=award_types.id
|
||||
AND award_types.year='{$config['FAIRYEAR']}'
|
||||
ORDER BY `$orderby`");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user