Můžete použít něco takového:
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);
Zkuste tuto syntaxi implementovat.
Můžete použít něco takového:
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);
Zkuste tuto syntaxi implementovat.