Bug Report #4407
The using the count_all() in the ORM Module it does not return the correct columns.
I have found the problem:
$selects = $method;
it should be
$selects[$key] = $method;
because in line:1488 there is a key collision happening if there is no key included in the $selects
$this->_db_pending += $selects;