No judge of any court shall sit on the trial of or argument of any matter in controversy in a cause pending in his court, when he:
This section shall not be construed to prevent a judge from sitting on such trial or argument because he has given his opinion in another action in which the same matter in controversy came in question or given his opinion on any question in controversy in the pending action in the course of previous proceedings therein, or because the board of chosen freeholders of a county or municipality in which he is a resident or liable to be taxed are or may be parties to the record or otherwise interested.
N.J.S. § 2A:15-49