Q&A about the site for Joomla! administrators, users, developers and designers
select top 10 a.ID, a.Title, b.Tag_count from posts a join ( SELECT postid, count(distinct tagid) as Tag_count FROM posttags group by postid having count(distinct tagid) > 5 ) b on a.ID = b.postid where a.posttypeID = 1