SELECT Character.id AS character_id
WHERE acct = player.account
Your character system would keep track of what character they're currently on using a flag like clientr.character_id and you would use that with your other tables rather than hardcoding account ids.