Hay un error: ERROR: column "circo" does not exist LINE 25: ...hapublicacion >= '2019-01-18 17:59:29' ) AND n.idnota =circo ^