As long as your database table has something that gets bigger with each insert, like an id number or datetime stamp, you can do (for example):
select stuff from mytable order by id desc
The "desc" sets the sort to be in descending order, so you get the biggest number (or newest date) first. Then you can use your limit to set how many rows you want to get back.