diff --git a/app/models/tag.rb b/app/models/tag.rb index c5aa41f254..313634709a 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -334,7 +334,7 @@ def followers_who_dont_follow_tags(tags) # https://github.com/publiclab/plots2/pull/4266 def self.trending(limit = 5, start_date = DateTime.now - 1.month, end_date = DateTime.now) - Tag.select('term_data.name, plots.term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120 + Tag.select('term_data.name, term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120 .joins(:node_tag, :node) .where('node.status = ?', 1) .where('node.created > ?', start_date.to_i)