I have below code, $tables contains all tables available in the system and $order_info contains all current orders, that contains table_id