27647. (a) If requested to do so by the superior court of the county of the county counsel, or by any judge thereof, and insofar as such duties are not in conflict with, and do not interfere with, other duties, the county counsel may represent any such court or judge thereof in all matters and questions of law pertaining to any of such judge’s duties, including any representation authorized by Section 68111 and representation in all civil actions and proceedings in any court in which with respect to the court’s or judge’s official capacity, such court or judge is concerned or is a party.
(b) This section does not apply to any of the following:
(1) Any criminal proceedings in which a judge is a defendant.
(2) Any grand jury proceedings.
(3) Any proceeding before the Commission on Judicial Qualifications.
(4) Any civil action or proceeding arising out of facts under which the judge was convicted of a criminal offense in a criminal proceeding.
(Amended by Stats. 2019, Ch. 497, Sec. 144. (AB 991) Effective January 1, 2020.)