Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead.
Download the development version. That warning has been fixed.
What exactly does setting $current_site do?
That's necessary to bypass the core site lookup.