title: how to query for the 2 id's field whose value present in the same table B
body: <pre><code>**Friends Table**     
  -------------------------
  id    seller_id    buyer_id
  -------------------------
  1     101           102
  2     102           104
  3     103           101
  4     104           101
  
  **Name Table**     
  --------------
  id    name_id
  --------------
  101   Robin
  102   Goblin
  103   Ork
  104   Wizard
  </code></pre>
  
  <p>I just want the Friends table to display the Name instead of name_id and friend_id.
  I know its easy but I cant find proper word to goggle for it. please help..</p>