Forum Discussion
auswin
Contributor
Thanks for the reply . I have one more query , I am trying to get the list of latest discussions where the subject matches a certain query , but I am getting the replies also in the result .
In the result , the subject shows as "Vs: *********" , where 'Vs' I believe is a reply .
Is it possible to get the result filtering the replies?
TariqHussain
8 years agoBoss
auswin- Add depth = 0 to your query. It will filter all the replies and will return only topics.
SELECT * FROM messages WHERE subject MATCHES 'wireless' and depth = 0
Give kudos if you find my posts helpful or mark solution if it answers your query
Tariq
Related Content
- 11 months ago
- 2 years ago