Fix query to get table names from oids
Merge branch 'CDB-1260' of github.com:CartoDB/cartodb into CDB-1260