Add filters for prev_id / next_id / first_id / last_id