get only one record from CI 2 code example
Example: get single row in codeigniter
$query = $this->db->get();
$ret = $query->row();
return $ret->campaign_id;
$query = $this->db->get();
$ret = $query->row();
return $ret->campaign_id;