Hay un error: ERROR: column "guadalupe" does not exist LINE 25: ...blicacion >= '2019-02-23 13:05:27' ) AND n.idnota =guadalupe ^