No prosecuting attorney shall receive any fee or reward from any person, on behalf of any prosecution, or for any of his or her official services, except as provided in this title, nor shall he or she be engaged as attorney or counsel for any party in any action depending upon the same facts involved in any criminal proceeding.