select first record if found