the following function is supposed to read the name of the given asset code from the database. but it triggers the error: \"Trying to get property of non-object\"
Use row() like,
row()
return $this->db->get()->row()->name;