db->where($where); $this->db->delete($this->_table_name); } public function get_locations($post_id = NULL, $single = FALSE) { $this->load->model('location_m'); $locations_table = $this->location_m->_table_name; $this->db->from($this->_table_name); $this->db->join($locations_table.' ON '.$locations_table.'.idlocation = '.$this->_table_name.'.location_id'); return parent::get($post_id, $single); } } ?>