[eluser]Unknown[/eluser]
I need to produce a where clause that looks like this:
WHERE messages.thread_id = 40 AND (messages.author = 10 or messages.recipient = 15)
I have tried where() and or_where but it produces
where messages.thread_id = 40 AND messages.author = 10 OR messages.recipient = 15
which of course does not give me the results I need.
Thanks!