Hay un error: ERROR: column "salon" does not exist LINE 25: ...hapublicacion >= '2019-05-25 02:36:21' ) AND n.idnota =salon ^