No prosecuting officer shall receive any fee or reward from or in behalf of a prosecutor for services in any prosecution or business to which it is his official business to attend, nor be concerned as counsel or attorney for either party in a civil action depending upon the same state of facts.