I just recently started using active record (before I just wrote manual queries since I was so used to them).

I was looking at the code of ion\_auth and I saw that in a few places the strings had been escaped even though active record was used,

i.e

```
 ->where($this->identity_column, $this->db->escape_str($identity))
 ->where($this->tables['groups'].'.name', $this->db->escape_str($group))

```

Thing is, I havent escaped anywhere where I have used active record since on the documentation it said active record escapes strings automatically.

My question, when using active record, are there some situations when you should escape strings?