Use __send__:
__send__
Copywhere{__send__(dynamic_column_name) = '42'}
where{__send__(dynamic_column_name) = '42'}