title: Getting value from mysql array with same column names
body: <pre><code>SELECT * 
      FROM companies 
      LEFT JOIN (ownership_reseller_to_company, users) 
      ON (users.ID=ownership_reseller_to_company.RESELLER_ID AND ownership_reseller_to_company.COMPANY_ID=companies.ID) 
      WHERE companies.NAME LIKE '%".$search_parm."%' AND users.ID='".$_USERID."'
  </code></pre>
  
  <p>My issue is I have NAME under <code>companies</code> and NAME under <code>users</code> but when I use <code>$row['NAME'];</code> I get the NAME under <code>users</code>. Is there a way to get the one under <code>companies</code>? I have tried $row['companies.NAME'] but with no success. </p>