Hay un error: ERROR: column "son" does not exist LINE 25: ...echapublicacion >= '2019-01-20 20:44:46' ) AND n.idnota =son ^