Ok I have no idea how to do this so
How do I select the last row.
It is on auto increasement if that helps. I will supply more info if needed
assuming that the rows have a sequentially numbered id:
SELECT * FROM table ORDER BY id DESC LIMIT 1