Brian J. McGoldrick argues drat the district court erred in denying his motion for relief pursuant to K.S.A. 60-1507.
McGoldrick was originally charged with three counts of aggravated robbery, eight counts of robbeiy, and one count of possession of cocaine. In exchange for his plea, tire State agreed to reduce two of the aggravated robbery charges to robbeiy and dismiss one of the other robbery charges. The plea agreement indicated the State agreed to recommend that the aggravated robbery charge was the primary offense and that the court impose the mid-level sentence in the appropriate sentencing guidelines box and have all *467other sentences be served concurrently. The plea agreement set forth the sentencing ranges on all the crimes, including the full sentencing range for aggravated robbery of 26 to 206 months’ imprisonment. After an exhaustive discussion with McGoldrick and a lengthy examination of his rights, Judge Clark V. Owens II accepted the plea.
Based on McGoldrick’s extensive criminal history, Judge Tom Malone, the sentencing judge, determined the sentencing range on the aggravated robbery conviction was 184 -194 -206, sentencing box III-A. Judge Malone sentenced McGoldrick to a presumptive term of 206 months’ imprisonment for the aggravated robbery conviction and then presumptive terms on the remaining 10 convictions. The igniting fact in this case was Judge Malone’s order to have all sentences run consecutively, contrary to tire plea recommendation, for a total period of confinement of 412 months, which was the maximum sentence based on double the term of the primary offense. See K.S.A. 2003 Supp. 21-4720(b)(4).
Immediately following the sentencing hearing, defense counsel filed a motion to withdraw McGoldrick’s plea. In the motion, McGoldrick claimed: (1) he was not guilty of the charges; (2) he was so emotionally distraught and under such mental distress at the plea hearing that his plea was not knowingly, voluntarily, and intelligently entered; (3) ineffective assistance of counsel concerning discussion of plea and possible penalties; and (4) manifest injustice because of the aggravated term of incarceration resulting from the consecutive sentencing.
Judge Owens, the same judge who accepted the plea, conducted a full evidentiaiy hearing on McGoldrick’s plea withdrawal motion and denied it. Prior to the evidentiary hearing, McGoldrick had filed a notice of appeal in the criminal case. However, following resolution of his motion to withdraw his plea, McGoldrick did not file another notice of appeal. In State v. McGoldrick, No. 85,377, unpublished opinion filed April 20, 2001, the Kansas Supreme Court considered McGoldrick’s appeal from his sentencing and granted no relief:
“McGoldrick contends the district court abused its discretion by not following the plea agreement when it imposed the aggravated term within the sentencing *468range for each of his convictions and .by ordering his sentences to run consecutively.
“K.S.A. 1998 Supp. 21-4720(b) allows the sentencing court to impose consecutive sentences in multiple conviction cases. Where a defendant challenges his or her presumptive sentencing on the ground that the running of multiple sentences consecutively constitutes an abuse of judicial discretion, no ground for appeal authorized by K.S.A. 21-4721 is asserted. State v. Ware, 262 Kan. 180, Syl. ¶ 4, 938 P.2d 197 (1997).
“K.S.A. 21-4721(c)(l) provides that an appellate court shall not review any sentence that is within the presumptive sentence for the crime. K.S.A. 1998 Supp. 21-4704(e)(l) allows die court to sentence at any place within the sentencing range. McGoldrick received presumptive sentences for his crimes. See K.S.A. 1998 Supp. 21-4704(a).”
McGoldrick filed a pro se motion and later a supplemental motion pursuant to K.S.A. 60-1507. He raised issues of ineffective assistance of counsel for not advising of the maximum penalty of 412 months’ incarceration, that he was coerced into accepting the plea, and several additional allegations of ineffective representation. He also advanced several constitutional claims regarding the sentencing court’s failure to follow the plea agreement, that the State breached the plea by not telling the court to follow the plea agreement and not arguing in support of the plea withdrawal, insufficiency of the evidence, and defective complaint. The district court appointed an attorney for McGoldrick but did not conduct an evidentiary hearing. The court heard arguments from counsel and then made findings of fact in denying the motion.
McGoldrick’s appellate attorney raises two issues: (1) There were sufficient facts in the record to necessitate a hearing on whether McGoldrick was coerced by his trial counsel into accepting the plea; and (2) he received ineffective assistance of appellate counsel when counsel failed to raise the withdrawal of plea issue on appeal. In his pro se supplemental brief, McGoldrick reasserts all the issues he raised in the 60-1507 motion.
Several principles of criminal jurisprudence guide our decision today.
In Kansas, the sentencing court is not a party to the plea agreement and is not bound by its terms. See State v. Heffelman, 256 Kan. 384, 395, 886 P.2d 823 (1994). Consequently, McGoldrick’s *469claims that the trial court's actions violated several provisions of the United States Constitution, namely the Contract Clause, the Due Process Clause, and the Separation of Powers Doctrine are without merit. The same fate applies to his claims involving the plea agreement as an illusory contract and that the sentencing court was not bound by it. The State and the defendant may not enter into a plea agreement calling for a certain sentence, only an agreement that each side will recommend to the court a certain sentence. See State v. Ford, 23 Kan. App. 2d 248, 253, 930 P.2d 1089 (1996), rev. denied 261 Kan. 1087 (1997). Thus, both the State and the defendant are well aware their joint recommendation to the court may not be accepted by the court.
McGoldrick also argues his plea should be set aside because he was not informed about the possibility of a consecutive sentence. In Wadsworth v. State, 25 Kan. App. 2d 484, 486, 967 P.2d 337, rev. denied 266 Kan. 1116 (1998), the court stated that the trial court is not required to inform the defendant of the possibility that sentences could run consecutively, even though the better practice is probably to do so. However, in Wadsworth, although he had not been advised of the possibility of consecutive sentences he was advised of the maximum sentence possible, which was more than he actually received. For a defendant to make a knowing and voluntary plea there must usually be knowledge of the maximum sentence possible that could result from the plea. This includes situations where the sentence could be significantly longer if various counts are run consecutively. While statutes and case law do not specifically require the court to provide information to a defendant that sentences could be run consecutively, it is a better practice for the court to do so.
It is vital that counsel inform defendants of the possibility of consecutive sentences where that is necessary to adequately inform them of the consequences of their plea.
At the plea withdrawal hearing, McGoldrick’s trial attorney testified he had a thorough discussion of the entire plea form, which included the paragraph that the sentencing court, at its discretion, could order the sentences to run concurrently or consecutively. Trial counsel made sure that McGoldrick understood the sentenc*470ing court was not bound by the plea agreement and could sentence him higher or lower tiran the agreement. However, trial counsel stated that he did not specifically discuss the fact that if the trial court ran the sentences consecutively, McGoldriclc could face a sentence of 412 months’ incarceration.
McGoldriclc did not have ineffective assistance of counsel simply because tire sentencing court ran all his sentences consecutively. McGoldriclc knew it was a possibility. He testified at the plea withdrawal hearing that he knew the sentences could run consecutively, and he even asked his trial counsel what the chances were that Judge Malone would run them consecutively versus running them concurrently. It was not ineffective assistance of counsel for McGoldriclc’s trial counsel to give his opinion that Judge Malone would follow the plea agreement. While the trial counsel was wrong, that does not equate to McGoldriclc receiving ineffective assistance of counsel. Trial counsel negotiated a reduction in charges against McGoldriclc, but he could not control the sentencing court’s discretion as to whether the sentences ran concurrently or consecutively.
The court may permit a defendant to withdraw his or her plea of guilty or nolo contendere after sentencing if doing so will correct a manifest injustice. K.S.A. 2003 Supp. 22-3210(d). The decision to deny a motion to withdraw a plea lies within the discretion of the trial court, and the trial court’s decision will not be disturbed on appeal absent a showing of abuse of discretion. State v. Shaw, 259 Kan. 3, Syl. ¶ 2, 910 P.2d 809 (1996). The issue of ineffective assistance of counsel involves mixed questions of fact and law, which are subject to de novo review. State v. Orr, 262 Kan. 312, 321, 940 P.2d 42 (1997). McGoldriclc received a legal sentence. It may have not been the sentence he wanted, but he was aware he could receive a higher sentence than that set forth in the plea agreement. McGoldrick’s failed anticipation does not equate to manifest injustice where he was cognizant of the possibility even if he had not computed what the actual term would be if all sentences ran consecutively.
McGoldriclc did not have a trial. He entered a plea agreement. State v. Solomon, 257 Kan. 212, 223, 891 P.2d 407 (1995), sets *471forth the standard for a claim of ineffective assistance of counsel concerning a plea agreement:
“To set aside a guilty plea because ineffective assistance of counsel has rendered the plea involuntary, the defendant must show that counsel’s performance fell below the standard of reasonableness and ‘that there is a reasonable probability that, but for counsel’s errors, he would not have pleaded guilty and would have insisted on going to trial.’ ” (Quoting Hill v. Lockhart, 474 U.S. 52, 58-59, 88 L. Ed. 2d 203, 106 S. Ct. 366 [1985].)
An abuse of discretion standard of review is applied to the district court’s ruling that McGoldrick received effective assistance of counsel concerning his plea agreement. See State v. Rowell, 256 Kan. 200, 213, 883 P.2d 1184 (1994).
Trial counsel failed to appeal the denial of die motion to withdraw plea. However, even if the denial of the motion to withdraw plea had been appealed, our reading of the record leads us to find that there would be no reasonable probability that the outcome of this case would have been any different. See Chamberlain v. State, 236 Kan. 650, 657, 694 P.2d 468 (1985). Even considering the issue on the merits, the trial court did not abuse its discretion in denying McGoldrick’s motion to withdraw his plea.
McGoldrick may have been emotional in the courtroom when he entered the plea because of the presence of family members, but the evidence indicates he knowingly, voluntarily, and intelligently accepted the plea. K.S.A. 2003 Supp. 22-3210(a)(3) requires the district court to address a defendant personally and determine that the guilty plea is being made voluntarily and with an understanding of the nature of the charge and the consequences of the plea. See generally Shaw, 259 Kan. at 10-11.
Contraiy to his arguments now, McGoldrick told the court he was more than adequately satisfied with the services of his attorney. He discussed the plea agreement with counsel. He did not express any concern or have any questions regarding the plea agreement. He understood the maximum penalties for each crime. He understood the myriad of constitutional rights he waived by accepting the plea. McGoldrick admitted, without objection, to the charges in the complaint and the well-pleaded facts supporting each charge. McGoldrick did not object to the factual basis for the *472charges and cannot now challenge the sufficiency or the validity of the complaint.
McGoldrick also complains that his trial counsel was ineffective for not understanding the facts and law in this case, namely whether the evidence demonstrated a theft as opposed to a robbery; for failing to sufficiently investigate the case before advising McGoldrick to accept the plea; for not telling him his sentences could run consecutively and that the amended sentencing guidelines statute would apply in tire case; for failing to protect his interests if the sentencing court did not accept the plea as contracted; for failing to provide him with a completed plea agreement before the hearing; and for threatening to walk out on him if he did not accept the plea. He further complains that appellate counsel should have raised all these current issues in the original appeal.
The evidence at the motion to withdraw plea hearing is contrary to McGoldrick’s arguments concerning the competency of trial counsel’s investigation. Trial counsel testified he reviewed the preHminary hearing transcript, tire prosecution reports, the volume of charges against McGoldrick, the surveillance photographs clearly showing McGoldrick as the perpetrator, and the statements McGoldrick made to police officials. Trial counsel stated the evidence was overwhelming against McGoldrick. There is no evidence to support the claim of ineffective assistance of counsel regarding trial counsel’s preparation and recommendations regarding the evidence.
The Kansas Supreme Court has recognized that a defendant’s due process rights are involved in a challenge to the State’s failure to abide by a plea agreement. See State v. Wills, 244 Kan. 62, 65-68, 765 P.2d 1114 (1988) (citing Mabry v. Johnson, 467 U.S. 504, 81 L. Ed. 2d 437, 104 S. Ct. 2543 [1984], and Santobello v. New York, 404 U.S. 257, 30 L. Ed. 2d 427, 92 S. Ct. 495 [1971]). Breach of a plea agreement denies the defendant due process. State v. McDaniel, 20 Kan. App. 2d 883, Syl. ¶ 1, 893 P.2d 290 (1995). We apply a de novo review when addressing claims that the State violated the terms of a plea agreement. See State v. Johnson, 258 Kan. 100, 899 P.2d 484 (1995); State v. Hill, 247 Kan. 377, 799 P.2d 997 (1990).
*473We do not find the State violated the plea agreement in this case. The State made no recommendations to the court at sentencing other than those stated in the plea agreement. Also, the plea agreement expressly limited any obligation by the State to the original sentencing hearing. Additionally, it was not a breach of the plea agreement for the State to argue in favor of enforcing the plea agreement at the hearing on the motion to withdraw the plea. The agreement expressly stated the sentencing court could sentence McGoldrick to concurrent or consecutive sentences.
We also agree with the State’s arguments concerning Mc-Goldrick’s claims of insufficient evidence and infirmity of the charges. In State v. Melton, 207 Kan. 700, 713, 486 P.2d 1361 (1971), the court stated: “[A] plea of guilty freely and voluntarily entered after consultation with counsel and with full knowledge of the possible consequences waives any defects or irregularities occurring in any of the prior proceedings. [Citations omitted.] This is so even though the defects may reach constitutional dimensions.” See also Young v. State, 206 Kan. 318, 319, 478 P.2d 194 (1970) (claim that no probable cause existed for issuance of arrest warrant waived by guilty plea); Dexter v. Crouse, 192 Kan. 151, 153, 386 P.2d 263 (1963) (conviction cannot be challenged based on claim of illegal search and seizure when defendant voluntarily pled guilty); Greenwood v. State, 30 Kan. App. 2d 870, 872, 50 P.3d 105 (2002) (a guilty plea, freely given, waives any defects or irregularities occurring prior to the plea even if the defect reaches constitutional dimensions).
The district court did not err in dismissing McGoldrick’s motion for relief pursuant to K.S.A. 60-1507. The evidence stated in the record and presented to the court by competent counsel also supports the district court’s decision that McGoldrick was not entitled to appear in court or have an evidentiary hearing on the motion. The files and records of the case conclusively show McGoldrick is not entitled to relief. See K.S.A. 60-1507(b); Supreme Court Rule 183(f),(g), and (j) (2003 Kan. Ct. Rules Annot. 213); Doolin v. State, 24 Kan. App. 2d 500, 501, 947 P.2d 454 (1997).
Affirmed.