fetch_var_by uses ids()