title: previous - next query in mysql
body: <p>I have a table in database that is having unique id's.
  I have a page where one particular id is shown and link is given for next and previous id's.
  I have to get those prev and next id's by one single mysql query .All i have is that particular id on whose data we are currently working on.
  id's are not consecutive numbers as sometimes some id's get deleted also.(for eg. 1,2,3,7,9,10,15 etc)</p>
  
  <p>So how can i get these two previous and next id's in one single query????</p>