Fixed usage of deprecated mysql_escape_string