Hay un error: ERROR: column "psycho" does not exist LINE 25: ...apublicacion >= '2019-05-23 15:40:20' ) AND n.idnota =psycho ^