title: How to select products in specific categories using SQL query in WooCommerce
body: <p>I used below code to select products from specific categories and works fine but I want to select products if include more than one category</p>
  <pre><code>SELECT post.ID, post.post_title FROM  `wp_posts` as post
  
  INNER JOIN wp_term_relationships AS tr ON tr.object_id = post.ID 
  WHERE
  post.`post_type` IN ('product','product_variation') 
  AND tr.term_taxonomy_id  IN(32,25)
  </code></pre>
  <p>I use <code>IN(32,25)</code> and it returns all products, how can I filter products just included in two categories?</p>