Hay un error: ERROR: column "inauguran" does not exist LINE 25: ...blicacion >= '2019-06-24 22:44:15' ) AND n.idnota =inauguran ^