This is what I came up with:
select p.name, c.name from people p join companies c on p.company_id = c.id where p.company_id in ( select id