I want to delete some data like this query that is in core PHP
WHERE user_id=$id AND sender_id=$send_id OR user_id=$send_id AND sender_id=$id
So I tried it in CodeIgniter using Active Record like this :
$this->db->where('user_id ', $id);
$this->db->or_where('user_id ', $send_id);
$this->db->where('sender_id ', $send_id);
$this->db->or_where('sender_id ', $id);
But it gives me the wrong result. What am I doing wrong?