I'm making a private chat system, and I want to make section "last messages from your conversations"
I really don't know how to do it. Im stuck at selecting messages
BASE ONE - members
id | conversationid | userid
BASE TWO - conversations
conversationid | name
BASE THREE - messages
id | conversationid | uid | message
I expect that: user is in conversations with id's: 1, 4, 5,9, 15 and there are selected messages from them - ordered by id