use ActiveRecord quoting for table, column names
fix typo in variable assignment
Merge pull request #31 from allourideas/sql-quoting

Use ActiveRecord quoting for table and column names.