<CFIF ParameterExists(Attributes.SelectedItems) is "Yes">
         <CFQUERY
            DATASOURCE="#Attributes.DataSource#"
            NAME="Sel"
         >
            SELECT DISTINCT #Attributes.ValueField#
            <!-- Only include Display field if attribute was specified -->
            <CFIF ParameterExists(Attributes.DisplayField) is "Yes">
               , #Attributes.DisplayField# 
            </CFIF>
            FROM #Attributes.ListTable#
            WHERE #Attributes.ValueField# IN (#PreserveSingleQuotes(Attributes.SelectedItems)#)
            <CFIF ParameterExists(Attributes.ListCondition) is "Yes">
               AND #PreserveSingleQuotes(Attributes.ListCondition)#
            </CFIF>
         </CFQUERY>
      </CFIF>