Issue dummy query when going to a page beyond the total entries.
Make conditions for if and elsif more consistent.
Change "Last page" to "Last partial page" to explain the ">".