title: Error: cannot insert multiple commands into a prepared statement
body: <p>I am trying to move a row from one table to another. </p>
  
  <p>The problem is that if I put both queries together, I get "error: cannot insert multiple commands into a prepared statement". What can I do?</p>
  
  <pre><code>exports.deletePost = function(id) {
      return db.query(`INSERT INTO deletedjobs
      SELECT *
      FROM jobs
      WHERE id = $1;
  
      DELETE FROM jobs WHERE id = $1;`, [id]).then(results =&gt; {
          console.log("succesfull transfer");
          return results.rows[0];
      });
  };
  </code></pre>