How can I select the row with the highest ID in MySQL?

SELECT * FROM permlog ORDER BY id DESC LIMIT 0, 1

if it's just the highest ID you want. and ID is unique/auto_increment:

SELECT MAX(ID) FROM tablename