Hay un error: ERROR: column "salon" does not exist LINE 25: ...hapublicacion >= '2019-08-25 09:31:47' ) AND n.idnota =salon ^