Fix deprecation of MySQL Escape Function