Quote:
The 'Function ID' is different for each function, depending on what poker table the function represents


I am by NO means a DB expert (or even novice), but it seems to me that it would be best for the unique "function ID" to be a unique "table ID" foreign key. And thus you can always uniquely reference each table not by which function run it, but by which "virtual" table(s) represents it.

Code:
SELECT * FROM active_poker_tables WHERE table_id = 'Unique Table ID'


Any MySQL'ers care to chime in and correct, augment, or fling my ignorant BS around, please?