{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/1458","labels_url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/1458/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/1458/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/1458/events","html_url":"https://github.com/mapbox/mapbox-studio-classic/issues/1458","id":106817767,"number":1458,"title":"Mapbox Studio Classic, postgis-vt-util","user":{"login":"wheredoesyourmindgo","id":3316678,"avatar_url":"https://avatars.githubusercontent.com/u/3316678?v=3","gravatar_id":"","url":"https://api.github.com/users/wheredoesyourmindgo","html_url":"https://github.com/wheredoesyourmindgo","followers_url":"https://api.github.com/users/wheredoesyourmindgo/followers","following_url":"https://api.github.com/users/wheredoesyourmindgo/following{/other_user}","gists_url":"https://api.github.com/users/wheredoesyourmindgo/gists{/gist_id}","starred_url":"https://api.github.com/users/wheredoesyourmindgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheredoesyourmindgo/subscriptions","organizations_url":"https://api.github.com/users/wheredoesyourmindgo/orgs","repos_url":"https://api.github.com/users/wheredoesyourmindgo/repos","events_url":"https://api.github.com/users/wheredoesyourmindgo/events{/privacy}","received_events_url":"https://api.github.com/users/wheredoesyourmindgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-16T17:08:30Z","updated_at":"2015-09-18T20:05:33Z","closed_at":null,"body":"After updating mapbox studio to 2.8, select layers can't seem to utilize the mapnik scale_denominator and bbox tokens, used in conjunction with [postgis-vt-util](https://github.com/mapbox/postgis-vt-util).  Something broke.  \r\n\r\n    Postgis Plugin: ERROR:  column \"scale_denominator\" does not exist\r\n    LINE 1: ...T *  FROM mapbox.treated_lateral_evw_ms  WHERE Z(!scale_deno...\r\n                                                             ^\r\n    in executeQuery Full sql was: 'SELECT ST_SRID(\"geom\") AS srid FROM (\tSELECT * \tFROM     mapbox.treated_lateral_evw_ms \tWHERE Z(!scale_denominator!) >= 14  \t\tAND Z(!scale_denominator!) <= 19  \t\tAND geom && !bbox! ) AS treated_lateral WHERE \"geom\" IS NOT NULL LIMIT 1;'"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/comments/141553117","html_url":"https://github.com/mapbox/mapbox-studio-classic/issues/1458#issuecomment-141553117","issue_url":"https://api.github.com/repos/mapbox/mapbox-studio-classic/issues/1458","id":141553117,"user":{"login":"wheredoesyourmindgo","id":3316678,"avatar_url":"https://avatars.githubusercontent.com/u/3316678?v=3","gravatar_id":"","url":"https://api.github.com/users/wheredoesyourmindgo","html_url":"https://github.com/wheredoesyourmindgo","followers_url":"https://api.github.com/users/wheredoesyourmindgo/followers","following_url":"https://api.github.com/users/wheredoesyourmindgo/following{/other_user}","gists_url":"https://api.github.com/users/wheredoesyourmindgo/gists{/gist_id}","starred_url":"https://api.github.com/users/wheredoesyourmindgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheredoesyourmindgo/subscriptions","organizations_url":"https://api.github.com/users/wheredoesyourmindgo/orgs","repos_url":"https://api.github.com/users/wheredoesyourmindgo/repos","events_url":"https://api.github.com/users/wheredoesyourmindgo/events{/privacy}","received_events_url":"https://api.github.com/users/wheredoesyourmindgo/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T20:05:33Z","updated_at":"2015-09-18T20:05:33Z","body":"I'm using the latest version of postgis-vt-util.sql.  I'm only having this issue with certain layers.  There are other layers in this datasource that use the same WHERE clauses and oddly they are working fine."}}