something like this should work: my_object = db(db[table_name]['id']==my_id).select().first()
If you use brackets instead of dot notation for table names, you may not be able to use dot notation for the field name. I don't know for sure, but instead of doing this: db[key].id Try this instead: db[key]['id'] I'm new to all of this, so I hope this helps.

