Well, I think this sentence can work...
To remember it, what I want is show the most popular N tags:
SELECT * FROM
(
SELECT t.tag AS tag, l.ID_TAG, COUNT(l.ID_TAG) AS quantity
FROM {$db_prefix}tags as t, {$db_prefix}tags_log as l WHERE t.ID_TAG = l.ID_TAG
GROUP BY l.ID_TAG
ORDER BY t.tag DESC
)
WHERE ROWNUM <= N
But this causes a 'hacking attemp' error...
I think I'm in the way to make it, but I need a little help...
Can anybody figure it out?