Modified sql query statement to change single quotes to backticks