Hay un error: ERROR: column "guadalupe" does not exist LINE 25: ...blicacion >= '2019-05-22 15:45:55' ) AND n.idnota =guadalupe ^