I think this is wrong, but I don't understand the intent.  Why do you want to know the last running transaction ID?