If you only want the first record:
select * from table where this = 'this' limit 1;
last record
select * from table where this = 'this' order by key desc limit 1;
Next and previous you should create that yourself with some coding boy :p
Create a scroll class or something. Just create something that works for you.[