i am trying to fetch records that have unique email address ( there are repeating emails as well in the database)
below is my query but it prints all the records
$this->db->distinct('email');
$this->db->select('*');
$this->db->from('booking');
$query = $this->db->get();
$data['booking']=$query->result();
Please help me to fix the issue . Thanks