Data sorting using GROUP_CONCAT in subquery