Complex sentence: Writing and recording for the album began in July 2010 but ended in late 2010, due to Lovato's rehabilitation.
Split into simpler sentences: Writing and recording for the album began in July 2010. But ended in late 2010, due to Lovato's rehabilitation.