select id,sbjct from news where time>$haberTime order by time asc limit 1 # bu haberin tarihinden büyük olanları artan tarihe göre listele 1 tane al select id,sbjct from news where time<$haberTime order by time desc limit 1 #bu da tersi