I know the very very basics of MySQL but I can't seem to figure out the following problem I have.
I try to display conversations between two users in an overview, where the last message between these two users will be shown.
So this:
Message Date User
Lipsum 10-10-2015 Bob
Lorem 11-10-2015 John
Dolor 11-10-2015 Bob
Will become this:
Dolor from Bob
Lorem from John
The message sql table looks like this:
MESSAGEID DATE FROM_USERID TO_USERID