In Jan-Dec Construction Corp. v. Court of Appeals,[12] we held that a petition for certiorari under Rule 65 is the proper remedy to question the dismissal of an action against one of the parties while the main case is still pending. This is the general rule in accordance with Rule 41, Sec. 1(g). In that case, ruled thus:
Evidently, the CA erred in dismissing petitioner's petition for certiorari from the Order of the RTC dismissing the complaint against respondent. While Section 1, Rule 41 of the 1997 Rules of Civil Procedure states that an appeal may be taken only from a final order that completely disposes of the case, it also provides several exceptions to the rule, to wit: (a) an order denying a motion for new trial or reconsideration; (b) an order denying a petition for relief or any similar motion seeking relief from judgment; (c) an interlocutory order; (d) an order disallowing or dismissing an appeal; (e) an order denying a motion to set aside a judgment by consent, confession or compromise on the ground of fraud, mistake or duress, or any other ground vitiating consent; (f) an order of execution; (g) a judgment or final order for or against one or more of several parties or in separate claims, counterclaims, cross-claims and third-party complaints, while the main case is pending, unless the court allows an appeal therefrom; and (h) an order dismissing an action without prejudice. In the foregoing instances, the aggrieved party may file an appropriate special civil action for certiorari under Rule 65.
In the present case, the Order of the RTC dismissing the complaint against respondent is a final order because it terminates the proceedings against respondent but it falls within exception (g) of the Rule since the case involves two defendants, Intermodal and herein respondent and the complaint against Intermodal is still pending. Thus, the remedy of a special civil action for certiorari availed of by petitioner before the CA was proper and the CA erred in dismissing the petition. (Emphasis supplied)
x x x."