title: How to select records who match criteria defined in a join table?
body: <p>I have this three tables:</p>
  
  <pre><code>products TABLE:
  id:integer
  name:string
  
  features TABLE:
  id:integer
  name:string
  
  features_products TABLE:
  product_id:integer
  feature_id:integer
  </code></pre>
  
  <p>The <code>features_products TABLE</code> tells me which features have each product. For example:</p>
  
  <pre><code>product_id feature_id
     1         3
     1         5
     3         4
  </code></pre>
  
  <p>tells me the product 1 has features 3 and 5 and product 3 have feature 4, also, product 2 (if exists) doesn't have features.</p>
  
  <p>My question is, how can I <code>SELECT</code> all the products from the products TABLE wich have determinated features? For example, <code>SELECT products which have features 3 AND 5</code>, or <code>SELECT products which have feature 2</code></p>