title: Mysql: How to get value through many conditions
body: <p>I have a table that contains the following data:</p>
  
  <pre><code>product_id  | product_attribute_id | value
      1       |         1            | red
      1       |         2            | XL
      1       |         3            | 300g
      2       |         1            | black
      2       |         2            | XXL
      2       |         3            | 400g
  </code></pre>
  
  <p>If I want to get the products have value: red, xl, 300g, what should I do?</p>
  
  <p>Please everyone give me advice!</p>