Any district judge or justice of the peace [magistrate court] having jurisdiction over any of the crimes enumerated in this article [30-19-1 to 30-19-15 NMSA 1978], or any district attorney inquiring into the alleged violation of any of the provisions of this article, may subpoena persons and compel their attendance as witnesses and may compel such witnesses to testify concerning any violation of this article.
Any person who is so subpoenaed and examined shall be immune to prosecution or conviction for any violation of this article about which he testifies.
A conviction may be had for any violation of this article upon the unsupported testimony of any accomplice or participant.
NMS § 30-19-14