Hay un error: ERROR: column "reforzara" does not exist LINE 25: ...blicacion >= '2019-05-26 06:26:46' ) AND n.idnota =reforzara ^