For purposes of this article, an inquiry before a committing court or a magistrate shall amount to a prosecution.