Ok, I think I understand the question a little bit. I am not exactly sure but I will explain both options,
1) try manually putting in the the 11'th record next time and that should set the autonumber back.
2) if you are wanting sql to select the last record, then (I am sure that there is an easier way of doing this) first, create a query to count all the rocords and give it a variable, then build a query to take the assigned variable and use that in the next query.
$recordCount = "SELECT count(*) FROM table"
now, use that variable in your next statement to take the total number of records. I am not exactly sure about the syntax, but I think this is close:
"SELECT * FROM table WHERE id = .'$recordCount'."
If you want it to display the last record then throw in another variable and have it echo that var:
$lastRecord = "SELECT * FROM table WHERE id = .'$recordCount'.";
echo $recordCount;
Use that one instead. I hope that this helps. If not, I am sure one of the php guru's here will pick this up and fix it. 🙂
Knowing me, I probably misunderstood the question. (have not had enough coffee this orn yet). 😉