title: Select records that belong to all specified categories
body: <p>A video can have several categories. I want to select a video that belongs to two categories.</p>
  <p>The result returned by this query and that the videos belong to only one of the categories in the condition</p>
  <pre class="lang-sql prettyprint-override"><code>SELECT Videos.id, Videos.title
  FROM videos Videos 
  INNER JOIN categories_videos CategoriesVideos
      ON Videos.id = CategoriesVideos.video_id 
  INNER JOIN categories Categories
      ON Categories.id = CategoriesVideos.category_id AND Categories.id IN (21, 35)
  LIMIT 25;
  </code></pre>
  <p>I tried to do several joins on the categories table but it doesn't change anything.</p>
  <p>Thanks for your help.</p>