last page query was returning 50,000+ rows

This should only return one row for the user.
Merge branch 'hotfix/getlastpage' into develop