Você precisa do nome/alias da tabela no
SELECT
parte (talvez (vg.id, name)
):SELECT (vg.id, name) FROM v_groups vg
inner join people2v_groups p2vg on vg.id = p2vg.v_group_id
where p2vg.people_id =0;
SELECT
parte (talvez (vg.id, name)
):SELECT (vg.id, name) FROM v_groups vg
inner join people2v_groups p2vg on vg.id = p2vg.v_group_id
where p2vg.people_id =0;