Complex sentence: Abu'l-Nasr enjoyed the confidence of Mahmud of Ghazna; in 1008 he fought in the center of the Ghaznavid line against the Karakhanids outside Balkh and in the following year escorted Mahmud during his campaign in India.
Split into simpler sentences: Abu'l-Nasr enjoyed the confidence of Mahmud of Ghazna. In the following year, he escorted Mahmud during his campaign in India.