Issue #2159013 by JuanMeBu: Pg_query: column reference nid is ambiguous .