Hay un error: ERROR: column "salon" does not exist LINE 25: ...hapublicacion >= '2019-01-19 19:23:56' ) AND n.idnota =salon ^