forked from science-ation/science-ation
Fix report to work with mysql5 -- need to join tables in the correct order.
This commit is contained in:
parent
1f31bc124c
commit
abe32b69ae
@ -67,9 +67,9 @@
|
|||||||
projectcategories.category
|
projectcategories.category
|
||||||
FROM
|
FROM
|
||||||
registrations
|
registrations
|
||||||
|
LEFT JOIN projects ON projects.registrations_id=registrations.id
|
||||||
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id
|
||||||
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id
|
||||||
LEFT JOIN projects on projects.registrations_id=registrations.id
|
|
||||||
|
|
||||||
WHERE
|
WHERE
|
||||||
projects.year='".$config['FAIRYEAR']."'
|
projects.year='".$config['FAIRYEAR']."'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user