Hay un error: ERROR: column "define" does not exist LINE 25: ...apublicacion >= '2019-05-26 05:55:51' ) AND n.idnota =define ^