Doh! Bug fix for totalcount. Didn't catch till I went from my test data to my full db.