A Database Error Occurred

Error Number:

ОШИБКА: отношение "groups" не существует LINE 2: FROM groups g JOIN subgroups s ON g.id = s.group_id... ^

SELECT g.name as group_name, s.name as subgroup_name, s.par1, s.par2, s.par3, s.par4, s.par5, s.par6, s.par7, s.par8, s.par9, s.par10, s.par11, s.par12 FROM groups g JOIN subgroups s ON g.id = s.group_id WHERE s.id = 122