0
Hey, good night, man. I think the title is a little fuzzy, I’ll try to explain better.
I’m making a chat system and I want to list all user conversations, but only one message from each user.
Example: It’s showing all the user messages Matthew, but wanted to show only one.
My select
SELECT * FROM pw_chat ORDER BY data ASC
If you want the latest one, better specify it in the question. The current answer given below takes one of each, but does not guarantee that it is the newest one.
– Bacco