Hay un error: ERROR: column "la" does not exist LINE 25: ...fechapublicacion >= '2019-02-21 01:03:06' ) AND n.idnota =la ^