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