Di semua versi MySQL, cukup alias agregat di daftar SELECT, dan urutkan dengan alias:
SELECT COUNT(id) AS theCount, `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY theCount DESC
LIMIT 20
Di semua versi MySQL, cukup alias agregat di daftar SELECT, dan urutkan dengan alias:
SELECT COUNT(id) AS theCount, `Tag` from `images-tags`
GROUP BY `Tag`
ORDER BY theCount DESC
LIMIT 20