fixing buffer rendering in where query clause in mysql

In mysql, blob types cannot be compared in where clauses. This fix uses the escape method properly in order to render a hexadecimal representation.