That should be you can't run tcl code that will run on the results within a select statement - you can run tcl code that is processed before the query goes to the database within a select statement - such as the orderby statement for listbuilder query's etc.