updated error message when variables named in select are not in data