Revert "mysql_escape_string is deprecated in PHP 4.5"

This reverts commit 0d480e0fa608245bc7041c93ad99e4f1cb2db13f.