What packages are you using and what order are you loading them in? That's not the error I would expect to see if you are trying to use dplyr::select and the columns you entered don't exist.
As @dvetsch75 suggests, the select() function you are using doesn't seem to come from dplyr as it is intended, so to avoid any possible name clash use the fully qualified function name instead. Then, provided your packages are up to date, you should see this outcome (tested on RStudio Cloud, R 4.2)