title: Laravel 4: Query builder retrieve join table data
body: <p>In Laravel, we could join 2 tables with this:</p>
  
  <pre><code>DB::table("users")-&gt;join('moreusers', 'users.id', '=', 'moreusers.user_id')-&gt;get();
  </code></pre>
  
  <p>And retrieve data with this:</p>
  
  <pre><code>$querydata[$i]-&gt;email
  </code></pre>
  
  <p>If both tables contain the same column name, how can I specifically retrieve it from first and second table?</p>
  
  <p>Thanks. </p>