SELECT id FROM users WHERE ok = @flag::bool;