fix to QueryPager::getTotal to make sure it doesn't use any limit