Ha saját bevallásod alapján sem értesz a mysql-hez, akkor miért akarod megszakérteni?
"The ID that was generated is maintained in the server on a per-connection basis. This means that the value returned by the function to a given client is the first AUTO_INCREMENT value generated for most recent statement affecting an AUTO_INCREMENT column by that client"
Vagyis ha php oldalról, te beszúrsz egy új sort a táblába, majd megnézed last_insert_id() -t, akkor az neked bizony unique lesz és nem fogja befolyásolni egy más szálon történt esemény
// Happy debugging, suckers#define true (rand() > 10)