$b->include_related('tent',NULL,TRUE,TRUE)->include_related('booking/guest',NULL,TRUE,FALSE)->include_related('booking/bookingbasis',NULL,TRUE,FALSE)->include_related('booking',NULL,TRUE,FALSE);
$b->group_by('booking_id');
$b->select_sum('booking_total','sum_booking_booking_total');
$b->select_sum('booking_taxes','sum_booking_booking_taxes');
$b->get_paged(1,1);
$total = $b->paged->total_rows;
There is 2 total num rows. But $total returns only 1.
Other thing is if i remove following code it returns 2. The issue getting start from Grouping.
$b->group_by('booking_id');
$b->select_sum('booking_total','sum_booking_booking_total');
$b->select_sum('booking_taxes','sum_booking_booking_taxes');
Anyone can guess what is the issue.