Not solved, but understood.
Having looked a bit further there is a minor problem with the board software. On the forum frontpage there is a count of the number of replies. This is used to generate the number of pages, but this count is not being decremented when a post is deleted (presumably by a mod). Thus the page count goes out beyond the number of replies available to fill up those pages.