Updated wpdb->prepare arguments for WP 3.5 and later.