Complex sentence: Unknown to the others, Apis spotted someone escaping down the stairs into the courtyard and he thought it was the king, and ran after him.
Split into simpler sentences: Unknown to the others, Apis spotted someone escaping down the stairs into the courtyard. He thought it was the king and ran after him.