I am trying to get a grasp on the CI database helper/class/lib. And the core basics I can do no problem. But I am so used to straight writing of queries rather than using ORM's that its a little confusing. Anyway..
I Have this query
SELECT * FROM my_table
WHERE ((a_id = xx OR b_id = xx) AND (a_id = zz OR b_id = zz))
AND active = 1
Basically I have a table where I have 2 users associated with one another, but multiple users so I need to make sure the connection is there and specifically between the 2 where the active flag is what it is.
However Not sure how to handle that query in CI's ORM so I am seeking some guidance on the issue.