Custom post type query.
Total results reflects accurate number: 81 results divided up over so many pages.
However, pagination fails (404) after random pages depending on search. A little digging shows that wordpress "THINKS" there are less pages than what the (accurate) pagination shows.
This is a deep problem. Been on a week. Can't finish my project due to this simple yet infinitely complex issue.
Is there a bug that causes this?
(it works fine on custom taxonomy templates, just fails on search.php).