poniendo eso me muestra el siguiente error:
Cita: Fatal error: Call to a member function num_rows() on a non-object in /home/a6532984/public_html/system/database/DB_active_rec.php on line 1080
el codigo de ese archivo es este
Cita: function count_all_results($table = '')
{
if ($table != '')
{
$this->_track_aliases($table);
$this->from($table);
}
$sql = $this->_compile_select($this->_count_string . $this->_protect_identifiers('numrows'));
$query = $this->query($sql);
$this->_reset_select();
if ($query->num_rows() == 0) //linea 1080
{
return '0';
}
$row = $query->row();
return $row->numrows;
}