Smart Variable

SELECT * FROM users WHERE occupation_id = {occupation_id}