select * from bbc_attention_art a where 10 > (select count(*) from bbc_attention_art where type_id=a.type_id and uid> a.uid )