Fix SQL error in quiz_quiz_finished().