Hay un error: ERROR: column "salon" does not exist LINE 25: ...hapublicacion >= '2019-03-20 18:04:31' ) AND n.idnota =salon ^