This code ends up running SELECT DISTINCT columnName FROM my_table (it interpolates the name of the variable into the SQL): I expected it to run SELECT DISTINCT my_column FROM table (interpolate the ...