ERROR: missing FROM-clause entry for table - Mailing list pgsql-general

From Kevin Waterson
Subject ERROR: missing FROM-clause entry for table
Date
Msg-id CAJSapQ1uokVvF_uNBqzLwWVqzuX5ADDsGD-vfotP-5K5qD9crQ@mail.gmail.com
Whole thread Raw
Responses Re: ERROR: missing FROM-clause entry for table  (Vik Fearing <vik@2ndquadrant.fr>)
List pgsql-general
I do not understand why I am getting this error.
I have joined the table correctly, is this not sufficient?

forge=> select * FROM generate_series('2016-01-22', '2017-12-31', '1 day'::interval) AS day
LEFT JOIN (
                            select *, generate_series(c.start_time, c.end_time, '2 week'::interval) meeting
                            from call_schedule c
                            join call_durations cds on c.duration_id=cds.id
                            where call_frequency_id = 5
                        ) c on ((day, '1 day'::interval) OVERLAPS (meeting, cds.duration * '1s'::interval));
ERROR:  missing FROM-clause entry for table "cds"
LINE 7: ...c on ((day, '1 day'::interval) OVERLAPS (meeting, cds.durati...
                        

pgsql-general by date:

Previous
From: Venkata Balaji N
Date:
Subject: Re: Live steraming replication setup issue!
Next
From: Vik Fearing
Date:
Subject: Re: ERROR: missing FROM-clause entry for table