missing FROM-clause entry for table bbbb - Mailing list pgsql-novice

From Abhra Kar
Subject missing FROM-clause entry for table bbbb
Date
Msg-id CAFNULEc2acaYAq2-6+spfSgp04AnmfijrfRLE9ked5wv711LqA@mail.gmail.com
Whole thread Raw
Responses Re: missing FROM-clause entry for table bbbb
Re: missing FROM-clause entry for table bbbb
Re: missing FROM-clause entry for table bbbb
Re: missing FROM-clause entry for table bbbb
List pgsql-novice
Hi 
 I tried to modify below sql command in postgres syntax--- 
 
 insert into aaaa (id, groupid, ele_id, ro_element_id) ")
             select bbbb.nextval, :groupid, gosp.neteleid, gosp.hodev 
       from net_ele gos, net_gos_prop gosp "
           where gos.eid in ( :eids ) and gos.id = gosp.net_element_id and 
            gos.id not in (select ealjs.element_id from aaaa ealjs where ealjs.groupid = :groupid)

If I run this it gives error for ":".If I remove : then I will get error like  missing FROM-clause entry for table bbbb.

What is the issue here and what should be exact query in postgressql

Thanks  

pgsql-novice by date:

Previous
From: Hugo Lourenco
Date:
Subject: Re: Streaming replication
Next
From: "David G. Johnston"
Date:
Subject: Re: missing FROM-clause entry for table bbbb