Forum Discussion
3 Replies
Sort By
- SuzieH10 years agoKhoros Alumni (Retired)
Hi peterlu
I think you're going to need separate calls. One to get the messages, such as:
SELECT messages FROM users WHERE roles.name IN ('Administrator', 'BlogAuthor')
And then using the returned query from there to get the message data... something like:
SELECT * FROM messages WHERE author.id IN ('3','17','43')
- peterlu10 years agoChampion
@SusanH, thanks for the info. The only problem of this solution is that it is not scalable. When there are a lot of authors of certain roles, the performance is not great. So we probably have to add in a date range into WHERE to limit the query.
Where is JOIN :smileytongue:
Related Content
- 3 years ago
- 9 months ago
- 11 months ago
- 2 years ago