public function getTables()
{
$this->db->from('tables');
//$this->db->join('locations', 'locations.location_id = tables.location_id', 'left');
$query = $this->db->get();
$result = array();
if ($query->num_rows() > 0) {
$result = $query->result_array();
}
return $result;
}