(1) No magistrate, clerk of the Court, or prosecutor in the public interest shall be liable to pay or be found liable by any Court in damages for or in respect of any proceedings taken, acts done, or judgment, decree, or sentence pronounced under this Code, unless—
-
(a) the person suing has suffered imprisonment in consequence thereof, and such proceedings, act, judgment, decree, or sentence has been quashed; and
-
(b) the person specifically avers and proves that such proceedings, act, judgment, decree or sentence were taken, done, or pronounced maliciously and without probable cause.