If I change that to company_id, I get the error: column "company_id" does not exist, because that column is inside USERS and not COMPANIES.
change that .... what is "that"
Provide the actual code you ran that resulted in "column "company_id" does not exist" Your attempts at brevity are making this harder that it has to be.