It is necessary to deduce articles from different authors from the database, and so that the authors do not repeat and the last article from this author is displayed. I make a request
SELECT write_id, author_id ,name_author, write_date, write, mini_img FROM writes WHERE author_id = '$UserId' GROUP BY author_id
he prints everything without repetition, but the author’s record displays the very first one, how to display the last one?