Du kan bruge noget som dette:
select threadID, postID, positionID, url
from your_table where
threadID in
(select * from (select distinct threadID from your_table order by threadID desc limit 10) as tab_alias);
Prøv denne syntaks for at implementere den.