title: sql select like junction table
body: <p>i have one table, which contains that fields </p>
  
  <pre><code>mid , email
    1 , 'user_a@...'  
    2 , 'user_b@...' 
    3 , 'user_c@...' 
  </code></pre>
  
  <p>and then another table with the following fields / values </p>
  
  <pre><code>tid, name  
    1, t_a
    2, t_b 
    3, t_c 
  </code></pre>
  
  <p>and other table </p>
  
  <pre><code>tid, mid
    1, 1
    1, 2
    1, 3
    2, 2
    2, 3
    3, 1
    3, 2
  </code></pre>
  
  <p>How can i get all users that have 't_a' and 't_b' .. i need to return</p>
  
  <pre><code>user_a,
  user_c
  </code></pre>
  
  <p>Because user_b does not contains t_a </p>