Puoi usare qualcosa del genere:
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);
Prova questa sintassi per implementarla.