Error in query (1055): Expression #16 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'temp.posts_count' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Add
temp.posts_count
to Group BY clausAs described here: https://forum.getfuelcms.com/discussion/comment/11073/#Comment_11073