In all cases where the same offenses may be made punishable or may be created by different clauses or sections of the ordinances of the city, the prosecuting officer may elect under which to proceed, but not more than one recovery shall be had against the same person for the same offense.