From 5641edd8d28adfd1f3d6064f3d11942f75cb8a8c Mon Sep 17 00:00:00 2001 From: james Date: Tue, 29 Mar 2005 20:51:37 +0000 Subject: [PATCH] use LEFT JOIN's instead of EQUAL joins --- admin/reports_judges.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/admin/reports_judges.php b/admin/reports_judges.php index 257cf79..6f2ceb5 100644 --- a/admin/reports_judges.php +++ b/admin/reports_judges.php @@ -81,12 +81,10 @@ $q=mysql_query("SELECT projectdivisions.division AS divpref_name FROM judges, - judges_years, - projectcategories, - projectdivisions + judges_years + LEFT JOIN projectcategories ON judges.catpref=projectcategories.id + LEFT JOIN projectdivisions ON judges.divpref=projectdivisions.id WHERE - judges.catpref=projectcategories.id AND - judges.divpref=projectdivisions.id AND judges.complete='yes' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id