Mysqli Ostatni rząd

SELECT id FROM table ORDER BY id DESC LIMIT 1;
Clean Chimpanzee