Here i have 2 tables. First one is customer and second on is membership
Now i just want to get a single last record with a particular <
Change this : $dataa = $query->result(); to this : $dataa = $query->row();
$dataa = $query->result();
$dataa = $query->row();