Answered
subquery to get results on either side of query result
I need to get room numbers that are 2 above and 2 below the
authenticated user's room number. I pretty much knew the attached
code wouldn't work, but it's the idea of what I want to do. The top
part of the query gives me the authenticated person's room number,
then I need to grab all room numbers that are between 2 on either
side of him/her. In other words, if user is in room 110, I need all
folks in room 108, 109, 111, 112 (and disclude 110). I'm just not
skilled enough yet to get this query correct. It is MySQL if that
makes a difference.