select * from article where id<15 order by id desc limit 0,1
select * from article where id = 15
select * from article where id > 15 && type_id =1 order by id ASC limit 1
多条数据库查找集合
(select * from article where id = 19)
UNION ALL
(select * from article where id > 19 and type_id=2 order by id ASC limit 1)
UNION ALL
(select * from article where id<19 and type_id=2 order by id desc limit 1);