bug 1121: Added backticks to sql-queries, small typo fix