You can't use:
'DISTINCT $column'
Because you are using single quotes so $column won't be interpolated.
If you notice my version above I use " "
'DISTINCT $column'
Because you are using single quotes so $column won't be interpolated.
If you notice my version above I use " "