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