A man who barricaded himself in a room at a Georgetown motel following a 2017 shooting has been sentenced to 18 years in prison.

Donnel Washington was found guilty of first degree burglary after a three-day trial in Georgetown County Court last week. The 40-year-old Georgetown man was sentenced by Circuit Court Judge Larry B. Hyman.

In April 2017, Washington was arrested after a standoff at the Bayview Motel in Maryville hours after a shooting at a residence on Prince Street — police said shots were fired into a home as well as a car. Washington was charged with obstruction of justice, domestic violence of a high and aggravated nature and discharging a firearm into a dwelling. He was also charged with trafficking cocaine and first degree burglary -- a felony punishable by life in prison in South Carolina.

Georgetown and Horry SWAT teams were called to the motel before Washington surrendered peacefully.

During the trial, he was found not guilty on the domestic violence and firearm charges.

Hyman sentenced Washington to life in prison but suspended that to the 18 years in prison with credit for the time served.