select * from a where id not in( select t.id from( select id from a order by id desc limit 0,2 ) t) and type=1 limit 2,3
select id from table where type=1 order by id desc limit 3