BUG: Used mysql function to remove escape characters from sql query.