Escape Like String

        if(isset($keyword) && $keyword != ''){
            $keyword = $this->db->escape_like_str($keyword);
            $sql .= " and (" . 
                " a.name like '%" . $keyword . "%' or " . 
                " b.name like '%" . $keyword . "%'" . 
                ") ";
        }