[eluser]cyberjunkie[/eluser]
Is is possible to add parentheses in queries produced by active records?
e.g.
Code:
SELECT * FROM (`posts`) WHERE `category` = 'health' AND (`tags` LIKE '%fruits%' OR 'tags' LIKE '%apples%`)
I read documentation and there's no example.
note: this is for a dynamic query. I'm adding an array in the or_like() function.