function run_select_one_field, tested locally