I have a table which holds a list of IDs, and various other columns such as IDName.
The Primary Key of the table is the ID itself, however it does not auto_increment
Ok, so far I've come up with, I think this will meet my requirements (unless there are any suggestions about a more optimal way to do it?)
SELECT ID FROM myTable WHERE ID > 27770000 AND ID < 27780000 ORDER BY ID DESC LIMIT 1