assuming you’re using an auto-incremented PK called ‘id’, compared to a bound param ‘:id’ which represents the current record…

next:

previous: