Fix SQL error in artist and groups