Hay un error: ERROR: column "planean" does not exist LINE 25: ...publicacion >= '2019-05-26 05:29:52' ) AND n.idnota =planean ^