Hay un error: ERROR: column "arranca" does not exist LINE 25: ...publicacion >= '2019-05-22 03:53:55' ) AND n.idnota =arranca ^