aboutsummaryrefslogtreecommitdiff
path: root/yourmostviewed.php
diff options
context:
space:
mode:
Diffstat (limited to 'yourmostviewed.php')
-rw-r--r--yourmostviewed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/yourmostviewed.php b/yourmostviewed.php
index 18936bd69..ffcdb50ad 100644
--- a/yourmostviewed.php
+++ b/yourmostviewed.php
@@ -21,7 +21,7 @@
INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid
INNER JOIN " . $prefix . "metastrings ms ON ms.id = ann1.name_id
AND ms.string = 'tp_view'
- WHERE ann1.owner_guid = " . $viewer->guid . "
+ WHERE ent.owner_guid = " . $viewer->guid . "
GROUP BY ent.guid
ORDER BY views DESC
LIMIT $max";