reciver-id | sender-id | date | text 1 | 44 | 21.12.2011 | qwerty 1 | 2 | 23.12.2011 | qwerty 1 | 3 | 21.12.2011 | qwerty 1 | 2 | 15.12.2011 | qwerty 1 | 44 | 20.12.2011 | qwerty
There is such a table of messages. How can I make a request for mysql to pull out only the last message from each user who sent messages?
From this table you should get this array:
reciver-id | sender-id | date | text 1 | 44 | 21.12.2011 | qwerty 1 | 2 | 23.12.2011 | qwerty 1 | 3 | 21.12.2011 | qwerty