Fix macro filename, write teh macro *code*!
Variable name clashes with ::select; fix cast.