Find next / previous record(s) in one query, for ActiveRecord.