After sincere ijtihad, error is found after prayer. What happens?

Conditions of Prayer: Purity, Covering, Intention and Qiblah