function sban_name($asset) { $this->db->select('name'); $this->db->from('asset_types'); $this->db->where('code', $asset); return $this->db->get()->row()->name; }