You're saying the count_all_results($this->tables['users']) doesn't contain the table name?
Thanks,[/quote]
Yep, that seems like where the error lies - although I'm not sure why the query formed is trying to find a field `0` - shouldn't it be the $identity field it looks for? (username or email)