我正在使用 codeigniter 创建一个项目,所有模块在本地主机中都工作正常,但是当我在 AWS 上上传文件时,它显示错误,主要是不起作用,如果我删除group_by()此功能,它工作正常,请帮助,我添加了一些代码片段和表结构。
模型:
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();
}
控制器:
$data['UNPAID_CLIENTS'] = $this->Payments_model->getPendingPayments();
表结构:
错误:
FFIVE
慕婉清6462132