-6009: Duplicate reference name 

Explanation:

A reference name was selected twice in the FROM clause of a QUERY SPEC. This violates the requirement that each table must have a unique reference name.

User Action:

Change one of the reference names.