Created
October 11, 2013 19:00
-
-
Save mlangenberg/6940231 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT `messages`.* FROM `messages` | |
INNER JOIN `message_recipients` ON `messages`.id = `message_recipients`.message_id | |
WHERE `message_recipients`.recipient_id = X | |
ORDER BY messages.created_at DESC LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment