This query returns the result in ASC order, Please i need to retrieve the results in DESC order in the nested shape because of other usage OR I need to retrieve the last sent message for each user
SELECT * FROM (SELECT * FROM messages ORDER BY messages.ID DESC ) messages GROUP BY From_User_ID