title: LAST_INSERT_ID not working on UPDATE
body: <p>if I use this SQL:</p>
  
  <pre><code>UPDATE formulare SET EV_id=59, EV_status=5 WHERE EV_id=57 AND ID_uziv=12;SELECT LAST_INSERT_ID();
  </code></pre>
  
  <p>I will get <code>0</code> as last insert id.
  I'm using php <code>mysqli_insert_id</code> and here is said that:</p>
  
  <pre><code>The mysqli_insert_id() function returns the ID generated by a query 
  on a table with a column having the AUTO_INCREMENT attribute. 
  If the last query wasn't an INSERT or UPDATE statement 
  or if the modified table does not have a column with the AUTO_INCREMENT attribute, 
  this function will return zero. 
  </code></pre>
  
  <p>my table <code>formualre</code> has <code>auto increment</code> column, so I don't know wher the problem is</p>