mysql_real_escape_string() error using xml2ary in WordPress plugin

Of course I shouldn’t save my XML Array in $data. -.-