Fixes ambiguous order clause.
authorStéphane Jacob <sj@m4x.org>
Sun, 6 Feb 2011 20:34:54 +0000 (21:34 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 6 Feb 2011 20:34:54 +0000 (21:34 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/search.php

index 64adb5f..8173c4a 100644 (file)
@@ -417,8 +417,8 @@ class SearchModule extends PLModule
                          INNER JOIN  profile_mentor_term    AS mt ON (mt.pid = mp.pid)
                          INNER JOIN  profile_job_term_relation AS jtr ON (jtr.jtid_2 = mt.jtid)
                               WHERE  jtr.jtid_1 = {?}
-                           GROUP BY  iso_3166_1_a2
-                           ORDER BY  country", $jtid);
+                           GROUP BY  gc.iso_3166_1_a2
+                           ORDER BY  gc.country", $jtid);
         $page->assign('list', $it);
     }
 }