TTFirstID()

TTFirstID() has the same functionality as TTFirst()  but returns the ID of the first result.