[bug-fix] Strings in SQL queries must not be double quoted. It must be single quoted.
[test] added test for single quoting in SQL query.