title: DB query is not getting all records as defined
body: <h1>Model</h1>
  
  <pre><code>    $id = $this-&gt;session-&gt;userdata('id');
  
      $q = $this-&gt;db-&gt;get_where('shipping_address', array('customer_id' =&gt; $id));
  
      if ($q-&gt;num_rows == 0)
      {
          $data['id'] = 'You dont have a shipping address saved.';
  
      } else {
          foreach ($q-&gt;result() as $row) 
              {
              $data['first'] = $row-&gt;firstname;
              $data['last'] = $row-&gt;lastname;
              }
      }
      return $data;
  </code></pre>
  
  <h1>Controller</h1>
  
  <pre><code>    $this-&gt;load-&gt;model('Customer_accounts');
  
          $customer = $this-&gt;Customer_accounts-&gt;get_customer_info();
          $ship = $this-&gt;Customer_accounts-&gt;shipping_address();
  
          $data = $ship + $customer;
  
      $this-&gt;load-&gt;view('account_dashboard/personal_information', $data);
  </code></pre>
  
  <h1>View</h1>
  
  <pre><code>&lt;?php foreach ($ship as $row) : ?&gt;
      &lt;table class="fixCap" border="0" cellspacing="0" cellpadding="0"&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $row['firstname'] . $row['lastname']; ?&gt;&lt;/td&gt; 
        &lt;/tr&gt;
  
             . . .
  
        &lt;/tr&gt;
      &lt;/table&gt;
  &lt;?php endforeach; ?&gt;    
  </code></pre>
  
  <h1>Var_dump</h1>
  
  <p>Is only showing an <code>array</code> with 1 of the the table <code>rows</code> but it should be showing 2 rows which contain the defined <code>customer_id</code> </p>
  
  <h1>Problem</h1>
  
  <p>Unable to pass the all the db <code>data</code> to the <code>foreach</code> what am I doing wrong?  </p>