Do NOT call attention to the error before tiral.
Allow the statute of limitations for traffic offenses to expire before going to court... put it off if you have to.
Say NOTHING about the error until the prosecution rests. Then have your wife, or her lawyer, introduce her license into evidence, ask the cop to compare the numbers on the ticket and license, and demonstrate that the license number on the ticket is not hers.
(Why did the cop have your license if you were a passenger, in the first place? I'm just curious.)
Tickets with errors can be ammended before trial to correct errors, but once the prosecution rests (providing they don't discover the error when/if they run her driving abstract) the error becomes fatal. Make sure your wife does NOT testify or call witnesses. The entire case must be based on the prosecution's facts.
If the prosecutor tried to ammend the ticket/complaint once you identify the error, then object. The Prosecution has rested it's case.
States that allow inaccurate information on tickets to be ammended generally do so under the rationale that, unless the correction puts the defendant in risk of double-jeopardy, the error is not fatal and the interests of Justice are served.
Once the prosecution rests, given that there is no admission from your wife that she was indeed driving, they will have no legal recourse but to dismiss.
And, the beauty of it is, since she has already stood trial for the offense, she's out of legal jeopardy.
Check out the case law in Cali. I KNOW there are cases in NY and NJ that you can cite should the judge be hesitant to grant your motion for dismissal.