aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/tags.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/tags.php b/engine/lib/tags.php
index 5ec06105c..8648fb3f8 100644
--- a/engine/lib/tags.php
+++ b/engine/lib/tags.php
@@ -101,7 +101,7 @@
$access = get_access_list();
- $query = "SELECT {$CONFIG->dbprefix}msvalue.string as tag, count(msvalue.id) as total ";
+ $query = "SELECT msvalue.string as tag, count(msvalue.id) as total ";
$query .= "FROM {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}metadata md on md.entity_guid = e.guid ";
$query .= " join {$CONFIG->dbprefix}entity_subtypes subtype on subtype.id = e.subtype ";
$query .= " join {$CONFIG->dbprefix}metastrings msvalue on msvalue.id = md.value_id ";