title: One INSERT with multiple SELECT
body: <p>I've already read <a href="https://stackoverflow.com/questions/20426967/adding-two-select-statements-into-one-insert-into-statement-in-postgresql">this</a>, <a href="https://stackoverflow.com/questions/33791061/postgres-insert-into-with-two-select-statements">this</a> and <a href="https://stackoverflow.com/questions/3736732/update-or-insert-multiple-rows-and-columns-from-subquery-in-postgresql">this</a>, but I cant make this SQL work:</p>
  
  <pre><code>INSERT INTO main_phrase (description) VALUES ('Mot commun féminin pluriel animaux');
  /* ERROR: */
  WITH
    t1 AS (
      SELECT id 
      FROM main_phrase 
      WHERE description='Mot commun féminin pluriel animaux'
    ),
    t2 AS (
      SELECT id 
      FROM main_groupecategories 
      WHERE description='Mot commun féminin pluriel animaux'
    )
  INSERT 
    INTO main_phrasegroupecategories (phrase_id, groupe_categories_id)
    VALUES                           (t1.id,     t2.id);
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>ERROR: missing entry for the clause FROM for table t1</p>
  </blockquote>
  
  <p>What am I missing?</p>