[eluser]TheFuzzy0ne[/eluser]
OK, I see that this is line 41:
Code:
$tip[] = anchor('site/lugares/'.$tipo->tipo,$tipo->tipo)."->".$this->db->query('SELECT COUNT(tipo) as total from negocios where tipo = "'.$tipo->tipo.'"');
The problem is that you're trying to use the db_result as a string. You need to extract the string you require from the query first.