title: Tag based search relating another Table in PHP
body: <p>I have three tables</p>
  
  <p>Blog table</p>
  
  <pre><code>id      blog        description
  1    Simple PHP   Nothing But simple
  2    Simple JS    Nothing But JS
  </code></pre>
  
  <p>Second Table is Tags</p>
  
  <pre><code>id   tag
   1    JS
   2    PHP
   3    mysql
  </code></pre>
  
  <p>Third Table is Blog_Tag</p>
  
  <pre><code>   id   blog_id  tag_id
      1      1       2
      2      1       3
      3      2       1
  </code></pre>
  
  <p>So what I need is a search based <code>tag</code> 
  here is what I tried </p>
  
  <p>For example If I search with PHP and Mysql Tags Blog with id 1 should come </p>
  
  <pre><code> Select Blog.* From Blog B INNER JOIN Blog_Tag BT ON(B.id=BT.blog_id) 
   WHERE BT.tag_id = 2 OR BT.tag_id=3
  </code></pre>
  
  <p>But this query outputs Blog 1 multiple times.any solutions? </p>