From e56cd67d2f57ab7b4d6a6423f735cdfe4391e101 Mon Sep 17 00:00:00 2001 From: Charles Fulton Date: Tue, 28 Feb 2012 05:52:22 -0800 Subject: [PATCH] MDL-31806 tags: remove second occurrence of id in query string --- tag/coursetagslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/coursetagslib.php b/tag/coursetagslib.php index c83b9543084..5922dd5761f 100644 --- a/tag/coursetagslib.php +++ b/tag/coursetagslib.php @@ -125,7 +125,7 @@ function coursetag_get_all_tags($sort='name', $numtags=0) { global $CFG, $DB; // note that this selects all tags except for courses that are not visible - $sql = "SELECT id, name, id, tagtype, rawname, f.timemodified, flag, count + $sql = "SELECT id, name, tagtype, rawname, f.timemodified, flag, count FROM {tag} t, (SELECT tagid, MAX(timemodified) as timemodified, COUNT(id) as count FROM {tag_instance} WHERE tagid NOT IN