An qad qāma and an aktuba must contain identical kinds of an.

Inna and Its Sisters: Six Particles, Meanings, Government and Exceptions