Why'd you need that? Just model your data properly and store the inserted objects.
If you want to get the last inserted ID (due to the AI modifier), you may query this as follows:
Code:
SELECT LAST_INSERT_ID()
But I'm sure that your library can even handle that, might be stored as property in the result class?