Add missing project variable to select query scan