Variables in Variables

Hello everyone,

is it possible to use variables like __from and __to in variables for querys?

thanks

shb