title: Codeigniter Select_Sum returns "array" not numerical value?
body: <p>I needed to add up all the rows for a result. Using the select_sum as follows</p>
  
  <p>Here is the model</p>
  
  <pre><code>    function Dues_Paid_Tot($date)
  {
      $query = $this-&gt;db-&gt;select_sum('Dues_Paid', 'Dues_Paid_Tot');
      $query = $this-&gt;db-&gt;get('Membership');
      return $query-&gt;result();
  }
  </code></pre>
  
  <p>Here is the controller</p>
  
  <pre><code>    function Fiscal2()
  {
  $date = $this-&gt;input-&gt;post('Select_Date');
      if($query = $this-&gt;report_model-&gt;fiscal_list($date))
      {
          $data['records'] = $query;
      }
  $data['date'] = $this-&gt;input-&gt;post('Select_Date');
  $data['Dues_Paid_Tot'] = $this-&gt;report_model-&gt;Dues_Paid_Tot($date);
  $data['main_content'] = 'report_fiscal_view';
  $this-&gt;load-&gt;view('includes/template', $data);
  }
  </code></pre>
  
  <p>And this is the pertinent code for the view</p>
  
  <pre><code>&lt;?php echo $Dues_Paid_Tot; ?&gt;
  </code></pre>
  
  <p>The problem is, instead of showing a summation of all the entries in the column Dues_Paid, I get "Array" in my view.</p>
  
  <p>Where am I going wrong?</p>
  
  <p>Thanks!</p>