forked from science-ation/science-ation
use LEFT JOIN's instead of EQUAL joins
This commit is contained in:
parent
392dcf94dc
commit
5641edd8d2
@ -81,12 +81,10 @@ $q=mysql_query("SELECT
|
|||||||
projectdivisions.division AS divpref_name
|
projectdivisions.division AS divpref_name
|
||||||
FROM
|
FROM
|
||||||
judges,
|
judges,
|
||||||
judges_years,
|
judges_years
|
||||||
projectcategories,
|
LEFT JOIN projectcategories ON judges.catpref=projectcategories.id
|
||||||
projectdivisions
|
LEFT JOIN projectdivisions ON judges.divpref=projectdivisions.id
|
||||||
WHERE
|
WHERE
|
||||||
judges.catpref=projectcategories.id AND
|
|
||||||
judges.divpref=projectdivisions.id AND
|
|
||||||
judges.complete='yes' AND
|
judges.complete='yes' AND
|
||||||
judges_years.year='".$config['FAIRYEAR']."' AND
|
judges_years.year='".$config['FAIRYEAR']."' AND
|
||||||
judges.id=judges_years.judges_id
|
judges.id=judges_years.judges_id
|
||||||
|
Loading…
Reference in New Issue
Block a user