I'm creating a project using codeigniter, all modules works fine in localhost, but when I uploaded the files on AWS, it's showing errors, mainly the group_by()
is not working, if I'm removing this function, it works fine, please help, I've added some code snippet and the table structure.
model:
public function getPendingPayments() {
$this->db->where('is_paid', 0);
$this->db->where('is_installment', 0);
$this->db->group_by('party'); // here if I remove this line, everything works fine
$this->db->order_by('bill_date', 'asc');
return $this->db->get('bills')->result();
}
controller:
$data['UNPAID_CLIENTS'] = $this->Payments_model->getPendingPayments();