OPINION
This is an original mandamus proceeding brought by Joe Rubio, Jr., and Dennis Zamarron, Relators, complaining of the actions of the Honorable Migdaiia Lopez, Judge of the 197th District Court of Cameron County, Respondent. We deny Rela-tors request for relief.
This action arises from a criminal prosecution heard in Respondent’s court. In the underlying criminal action, the State of Texas, Real Party in Interest, obtained an indictment against the Harlingen Police Officer’s Association, Inc. (HPOA), a Texas non-profit corporation, alleging that HPOA had committed the offense of Prohibited Contribution 1 by contributing funds to the political campaigns of two candidates for public office. Relators were corporate officers and agents of HPOA, and employees of the City of Har-lingen Police Department. Relators were named, in their capacities as corporate officers, in the indictment as having committed the acts subjecting HPOA to criminal liability; however, all parties agreed that the Relators were not individually named in the indictment. The State and HPOA entered into a plea agreement which provided that in exchange for a plea of no lo contendré by HPOA, the State would recommend a fine of $3,000.00, plus court costs, and the State would not prosecute the Relators, individually, for any election code violations arising from the underlying investigation. Additionally, Relators agreed to resign their posts as officers with HPOA and their commission as police officers with the Harlingen Police Department. At the end of the plea hearing, Respondent announced in open court that she would follow the plea agreement; however, Respondent did not specifically recite the terms of the agreement. The judgment of conviction signed by Respondent in the underlying cause makes no reference to the Relators being required to resign from their HPOA offices or their posts as police officers.
Relators argue that Respondent’s acceptance of the plea agreement constituted an attempt by Respondent to exercise jurisdiction over Relators by requiring them to resign from their jobs and their HPOA offices. Relators farther contend that because they were not named individually in *241 the indictment returned against HPOA, the trial court lacked jurisdiction over them, and therefore, the trial court’s action in requiring Relators’ resignations was void. Relators request the issuance of a writ of mandamus directing Respondent to vacate her void order.
There are two prerequisites that must be met before a writ of mandamus will issue: (1) the act sought to be compelled must be ministerial, as distinguished from discretionary, and (2) Relators must not have an adequate remedy at law.
Ordunez v. Bean,
We first examine whether Respondent had jurisdiction over Relators. For a court to act, it must have jurisdiction to do so. This is fundamental.
See State ex rel Millsap v. Lozano,
In the present case, it is undisputed that Relators were not indicted, and therefore, the trial court was not vested with jurisdiction over them. The State responds that mandamus is not an appropriate remedy in the present case, because Relators fully understood the consequences of the plea agreement and never indicated that they objected to the agreement. The State overlooks the fact that jurisdiction in a criminal proceeding cannot be conferred by agreement; this type of jurisdiction exists by reason of the authority vested in the court by the Constitution and statutes.
Garcia v. Dial,
We next examine the issue of whether Respondent attempted to exercise jurisdiction over Relators by her acceptance of the plea agreement. The State and Respondent, in a response filed with this Court, contend that there was no plea agreement between the State and Relators, but rather the plea agreement was only between the State and HPOA. In support of this argument, the State directs our attention to the judgment of conviction against HPOA which makes no reference to Relators, and which does not require Relators to take any action. In essence, the State and Respondent argue that mandamus relief should be denied because Respondent did *242 not order Relators to do anything, and therefore, Respondent did not exercise jurisdiction over Relators. At oral argument, counsel for the State explained that Rela-tors’ agreement to resign from the police department was not part of the plea agreement in the underlying cause, but rather was merely a “side agreement” between Relators and the City of Harlingen. In order to determine whether Relators were parties to a plea agreement in the underlying case, we must examine the nature of plea bargain agreements.
Plea bargaining has been defined as follows:
Plea bargaining is a process which implies a preconviction bargain between the State and the accused whereby the accused agrees to plead guilty or nolo contendere in exchange for a reduction in the charge, a promise of sentencing leniency, a promise of a recommendation from the prosecutor to the trial judge as to punishment, or some other concession by the prosecutor that he will not seek to have the trial judge invoke his full, maximum implementation of the conviction and sentencing authority he has, i.e., it is the process where a defendant, who is accused of a particular criminal offense, and his attorney, if he has one, and the prosecutor enter into an agreement which provides that the trial on that particular charge not occur or that it will be disposed of pursuant to the agreement between the parties, subject to the approval of the trial judge. Put another way, plea bargaining is the process by which the defendant in a criminal case relinquishes his right to go to trial in exchange for a reduction in charge and/or sentence.
Perkins v. Court of Appeals,
This definition of “plea agreement” offered by the Court of Criminal Appeals contemplates that only a defendant and the State may enter into such an agreement. As previously noted, Relators were not the defendants in the underlying criminal prosecution, and therefore, by definition, their agreement to resign from their employment cannot constitute a plea bargain agreement. Accordingly, we agree with the State’s argument and find that Relators’ agreement to resign as police officers and HPOA officeholders was not a part of the plea agreement, and may not be enforced as such. Conversely, we find that the State’s agreement not to prosecute Relators for any election code violation arising from the underlying investigation is properly an enforceable part of the plea agreement between the State and HPOA. HPOA entered its plea of
no lo contendré
in exchange for a recommendation as to punishment and a guarantee of leniency towards the Relators, a third party. A plea agreement may properly include a promise to an accused of leniency towards a third party.
See Torrez v. State,
*243 Because Relators’ agreement to resign was not a part of the plea agreement, we further find that Respondent’s announcement, that she would follow the plea agreement, did not constitute an attempt to exercise jurisdiction over Relators. Respondent’s oral ruling on the motion for new trial lends support to our holding. In the their motion for new trial, Relators raised the same issue presented in this mandamus proceeding. In her ruling on said motion, Respondent stated: “I understand the issue that the Association is bringing forward about the impact on the third parties, and that is a collateral issue, and the court will deny the motion for new trial.” From this ruling, it is clear that Respondent considered Relators’ resignations to be an issue separate and apart from the Court’s imposition of judgment in the underlying case. Furthermore, we note that the judgment signed by Respondent in the underlying cause supports our finding that Respondent did not intend to exercise jurisdiction over Relators. All judgments in criminal cases should reflect the terms of any plea agreement. Tex. Code Crim.Peoc.Ann. art 42.01, § 1(20) (Vernon Supp.2001). However, the judgment signed by Respondent in the underlying cause does not contain any requirement that Relators resign from the police force or HPOA.
Relators imply that Respondent’s oral announcement at the plea hearing controls over the later written judgment. We acknowledge that, generally, oral pronouncement of a sentence will control over the written judgment.
See Coffey v. State,
Because we have found that Relators’ agreement to resign from the Harlingen Police Department and HPOA was not a part of the plea agreement, and that Respondent’s acceptance of the plea agreement was not an exercise of jurisdiction over Relators, as they were not parties to said agreement, we conclude that the trial court’s judgment is not void. Accordingly, we deny Relators’ request for a writ of mandamus.
Notes
. Tex.Elec.Code Ann. § 253.094 (Vernon Supp. 2001).
