title: mysql - after insert ignore get primary key
body: <p>i am running a query in mysql <code>insert ignore into........</code> using Python</p>
  
  <p>after running the query I want to know the primary key of the row.  I know there is the query </p>
  
  <pre><code>SELECT LAST_INSERT_ID();
  </code></pre>
  
  <p>but i'm not sure if it will work with insert ignore</p>
  
  <p>what is the best way to do this?</p>