diff --git a/application/models/Grocery_crud_model.php b/application/models/Grocery_crud_model.php index 24930055..90ca4267 100755 --- a/application/models/Grocery_crud_model.php +++ b/application/models/Grocery_crud_model.php @@ -162,12 +162,12 @@ function or_having($key, $value = NULL, $escape = TRUE) function like($field, $match = '', $side = 'both') { - $this->db->like($field, $match, $side); + $this->db->like($this->table_name.'.'.$field, $match, $side); } function or_like($field, $match = '', $side = 'both') { - $this->db->or_like($field, $match, $side); + $this->db->or_like($this->table_name.'.'.$field, $match, $side); } function limit($value, $offset = '')