title: Array to String conversion error in Codeigniter. result_array() and array_unique()
body: <p>I just what to turn the result array from my query (which is only has one column) to a unique array so it doesnt have repeated elements.</p>
  
  <p>I don't know what else to do, I've tried everything, what am I doing wrong?</p>
  
  <p>Model:</p>
  
  <pre><code>public function get_info()
      {
          $this-&gt;db-&gt;select('column');
          $this-&gt;db-&gt;from('table');
          $query=$this-&gt;db-&gt;get()-&gt;result_array();
  
          $out=array_unique($query);
          return $out;
  
      }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public function index()
  {
      $this-&gt;load-&gt;model('the_model');
      $data['stuff']=$this-&gt;the_model-&gt;get_info();
      $this-&gt;load-&gt;view('the_view',$data);
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>       &lt;?php 
            foreach($stuff as $i)
           {
            echo "$i['column']}";
           }
          ?&gt;
  </code></pre>
  
  <p>The error I get is this:</p>
  
  <pre><code>A PHP Error was encountered 
  Severity: Notice 
  Message: Array to string conversion 
  Filename: models/the_model.php
  </code></pre>