Hay un error: ERROR: column "convocan" does not exist LINE 25: ...ublicacion >= '2019-07-21 17:33:50' ) AND n.idnota =convocan ^