NEW YORK (AP) — A man has been sentenced to 45 years in prison for fatally stabbing his sleeping wife in a rage triggered by jealousy and then killing their two toddlers.

Queens District Attorney Richard A. Brown says Miguel Mejia-Ramos was sentenced Friday.

He pleaded guilty to manslaughter last month for the January killings.

Mejia-Ramos told police he snapped after drinking and finding a photo on his wife's phone of her with another man.

He grabbed a kitchen knife and stabbed 21-year-old Deisy Garcia and their daughters, ages 1 and 2.

He was arrested near Schulenburg, Texas. Authorities say he was trying to flee to Mexico.