CI escape_str or escape

If you using CI active record then all of the query is already being escape, but what about custom query? You should use escape_str or escape at the where statement. So what is the different between escape_str or escape? which one should we use? Let’s discuss about it. escape Below is the example : $this->db->query(“SELECT …