Hay un error: ERROR: column "atletico" does not exist LINE 25: ...ublicacion >= '2019-03-24 23:00:10' ) AND n.idnota =atletico ^