use activerecord query interface instead of deprecated finder methods
quote column name for mysql
Merge pull request #71 from srgpqt/master

use activerecord query interface instead of deprecated finder methods