I'm trying to create a sublayer with interactivity on it for a tooltip. The tooltip is going to need data from a column named plant_name. So I am setting the interactivity property as I create the sublayer, like this:
sublayer = layer.createSubLayer( sql: sql, cartocss: css interactivity: ["cartodb_id", "plant_name"] )
The problem is I get an error saying "layer1: Postgis Plugin: ERROR: column "plant_name" does not exist." even though the column is in the table.
What am I doing wrong?