
189 S.W.3d 459 (2004)
87 Ark. App. 225
Michael CAMPEA
v.
STATE of Arkansas.
No. CACR 03-1033.
Court of Appeals of Arkansas, Division III, IV.
June 30, 2004.
*460 William R. Simpson, Jr., Public Defender, Lance Sullenberger, Deputy Public Defender, by: Clint Miller, Deputy Public Defender.
Mike Beebe, Att'y Gen., by: David R. Raupp, Senior Asst. Att'y Gen., for appellee.
ANDREE LAYTON ROAF, Judge.
Appellant Michael Campea appeals his sentences, as an habitual offender, for breaking and entering and attempted theft of property convictions. For reversal, Campea argues that the trial court imposed an illegal sentence. We find that the trial court did not impose an illegal sentence, and because Campea failed to object during sentencing, his arguments are thus not preserved for review.
Campea pled guilty to breaking and entering, a Class D felony, and attempted theft of property with a value of $2,500, a Class C felony. Campea was also an habitual offender with more than one, but less than four prior felonies. The Pulaski *461 County Circuit Court accepted his plea, and a jury was impaneled to hear evidence for sentencing. Campea admitted that he had committed the new offenses while on parole. After hearing the evidence, the jury sentenced Campea as an habitual offender with two prior convictions to 12 years' imprisonment for the breaking and entering offense, and to 20 years' imprisonment for the attempted theft of property offense. The trial judge ran these sentences concurrently. The judge also ran the two sentences consecutive to the twenty-year sentence Campea received for the parole violation, stating that by statute the new sentences had to be run consecutive to the parole violation statute. Campea did not object to these sentences in the trial court.
Campea asserts on appeal that the trial court imposed an illegal sentence when it found that, as a matter of statute, it must run his sentences for the new convictions consecutive to the sentence for the parole violation. It is well settled that a challenge to an illegal sentence may be raised for the first time on appeal. Bangs v. State, 310 Ark. 235, 835 S.W.2d 294 (1992). Further, the issue of an illegal sentence is an issue of subject matter jurisdiction, which this court can raise sua sponte. Harness v. State, 352 Ark. 335, 101 S.W.3d 235 (2003).
A sentence is void or illegal when the trial court lacks the authority to impose it. Sentencing in Arkansas is entirely a matter of statute . . . We have consistently held that sentencing shall not be other than in accordance with the statute in effect at the time of the commission of a crime. Where the law does not authorize the particular sentence pronounced by the trial court, that sentence is unauthorized and illegal, and the case must be reversed and remanded.
State v. Fountain, 350 Ark. 437, 440, 88 S.W.3d 411, 413 (2002) (citations omitted).
Arkansas Code Annotated section 16-93-607(e)(1) (1987) provides in pertinent part:
When a convicted felon, while on parole, is convicted of another felony, the felon shall be committed to the Department of Correction to serve the remainder of his original sentence, including any portion suspended, with credit for good-time allowances. Upon conviction for the subsequent felony, the court shall require the sentences for the subsequent felony to be served consecutively with the sentence for the previous felony.

(Emphasis added.) Section 16-93-607 defines "felonies" as "those crimes classified as Class Y, Class A, or Class B by the laws of this state." Here, Ark.Code Ann. § 16-93-607 did not authorize the trial court to run Campea's sentences consecutively because he was not subsequently convicted of a Class Y, Class A, or Class B felony. Instead Campea was convicted of a Class C and D felony. Therefore, section 16-93-607 was inapplicable in this case.
Campea also argues that pursuant to Ark.Code Ann. § 5-4-403, the trial court had discretion to run the sentences consecutively or concurrently. Arkansas Code Annotated § 5-4-403(b) states in pertinent part:
When a sentence of imprisonment is imposed on a defendant who has previously been sentenced to imprisonment, whether by a court of this state, a court of another state, or a federal court, the subsequent sentence shall run concurrently with any undischarged portion of the previous sentence, unless, upon recommendation of the jury or the court's own motion, the court imposing the subsequent *462 sentence orders it to run consecutively with the previous sentence.
(Emphasis added.)
While section 5-4-403 mandates that subsequent sentences be served concurrently, it permits the court on its own motion to run the sentences consecutively. Ark.Code Ann. § 5-4-403(b). Therefore, because section 5-4-403(b) authorizes the trial court to impose a consecutive sentence, Campea's sentence is not illegal. To the extent that Campea argues that his sentence is improper because the trial judge failed to exercise his discretion under Ark.Code Ann. § 5-4-403(b), the failure to exercise discretion in this regard does not render the sentence illegal. Thus, this argument is not preserved for review because it was not raised to the trial court. Mixon v. State, 330 Ark. 171, 954 S.W.2d 214 (1997).
Finally, Campea argues that there is a conflict between sections 5-4-403 and 16-93-607 that deserves resolution. Campea did not object to his sentence below and any argument regarding his sentence, other than an illegal-sentence argument, Bangs v. State, 310 Ark. 235, 835 S.W.2d 294 (1992), is not preserved for appellate review. Accordingly, his sentence is affirmed.
Affirmed.
PITTMAN, HART, NEAL, and BAKER, JJ., agree.
GRIFFEN, J., dissents.
WENDELL L. GRIFFEN, Judge, dissenting.
I would hold that appellant was sentenced illegally because he was sentenced pursuant to a statute that in no way authorized the punishment imposed by the trial judge. Thus, I would hold that appellant's illegal-sentence argument was preserved for appeal and would remand for resentencing under the correct statutory authority.
An illegal sentence is not only one that is illegal on its face, but it is also illegal if the circuit court lacked statutory authority to impose it. Mayes v. State, 351 Ark. 26, 89 S.W.3d 926 (2002); Blanks v. State, 300 Ark. 398, 779 S.W.2d 168 (1989); Brown v. State, 82 Ark.App. 61, 110 S.W.3d 293 (2003). The trial judge here unquestionably had no authority to sentence appellant under Arkansas Code Annotated § 16-93-607 (1987) because that statute expressly applies only to Class Y, A, or B felonies, but appellant was convicted only of Class C and D felonies.
The statute under which appellant should have been sentenced, Arkansas Code Annotated § 5-4-403(b) (Supp.2003), authorized the trial judge to exercise his discretion in determining whether appellant's sentences were to run consecutively or concurrently to appellant's sentence for a parole violation. However, because appellant committed the offenses while on parole, the trial judge erroneously believed that under Arkansas Code Annotated § 16-93-607, he was required to run appellant's sentences consecutively to appellant's sentence for the parole violation. The trial judge stated from the bench: "I did make an entry of the fact that this, by statute, has to be consecutive to the parole violation." Based upon this misunderstanding, the trial judge sentenced appellant pursuant to the wrong statute. The majority apparently recognizes that the trial court was without authority to act under § 16-93-607, but glosses over the trial court's error by stating that § 16-93-607 was "inapplicable in this case."
The majority then holds that because the appellant's sentence was otherwise authorized under § 5-4-403, it was not illegal. However, this is not a case in which a *463 defendant merely received the same sentence that he could have otherwise received under another statute. The trial judge's initial error here is compounded because, in relying upon the wrong statute, he also failed to exercise discretion in sentencing. See, e.g., Acklin v. State, 270 Ark. 879, 606 S.W.2d 594 (1980)(reversing and remanding where the trial judge did not exercise his discretion to run sentences concurrently); see also Wing v. State, 14 Ark.App. 190, 686 S.W.2d 452 (1985). We have no way to know whether the trial judge would have imposed a concurrent sentence or a consecutive sentence if he had correctly sentenced appellant pursuant to § 5-4-403, but we do know that the judge did not realize that he had such discretion and, therefore, failed to exercise any discretion. If, upon remand, the trial judge were to order appellant to serve the same sentence under the correct statute, at least he will have properly exercised his discretion and appellant will serve the sentence for the right reason.
I respectfully dissent.
