title: PDO Join, avoid overwriting keys with the same name in the resulted array
body: <p>I am doing a join with PDO like this:</p>
  
  <pre><code>SELECT users.*,images.*, sessions.*,social.*,videos.*,teams.*,achievements.*,_achievements_list.* FROM users LEFT JOIN images ON users.user_id=images.user_id LEFT JOIN sessions ON users.user_id=sessions.user_id LEFT JOIN social ON users.user_id=social.user_id LEFT JOIN videos ON users.user_id=videos.user_id LEFT JOIN teams ON users.user_id=teams.user_id LEFT JOIN achievements ON users.user_id=achievements.user_id LEFT JOIN _achievements_list ON achievements.achievement_id=_achievements_list.parent_id WHERE users.nickname = 'something'
  </code></pre>
  
  <p>The problem is that some tables have the same names for some columns, so in the array that PDO gives me back, many things are overwritten.</p>
  
  <p>I am using this:</p>
  
  <pre><code>   $statement = $this-&gt;pdo-&gt;prepare($query);
  
      if ($statement-&gt;execute($param))
          return $statement-&gt;fetchAll(PDO::FETCH_ASSOC);
      return false;
  </code></pre>
  
  <p>PDO returns an associative array, but how do I do in order to avoid overwriting columns with the same names but from different tables?</p>