how many results would you like to buffer? do you want to go above and below the number?
the only way i can think of is 2 queries.
Code:
select * from table where field>=$number order by field asc limit 5;
select * from table where field<$number order by field desc limit 5;
eh?