Как получить доступ к значению Select's Clause Sum () из пункта WHERE с Active Record Codeigniter [Duplicate]Php

Кемеровские программисты php общаются здесь
Anonymous
Как получить доступ к значению Select's Clause Sum () из пункта WHERE с Active Record Codeigniter [Duplicate]

Сообщение Anonymous »

У меня есть следующий код Activerecord, чтобы получить счет и сумму его оплаты. < /p>

Код: Выделить всё

$this->db->select('invoice.*,customer.custid,customer.cust_name,customer.cperson,customer.cust_email,customer.cust_mobile,customer.cust_address,sum(payment_received.amount) as paid_amount');
$this->db->join('customer','customer.custid=invoice.custid');
$this->db->join('payment_received','invoice.inid=payment_received.inid','left');
$this->db->where('@paid_amount IS NULL');
Из -за имени столбца Codeigniter Escape с '`' thar Its It infore" Неизвестный столбец '@paid_amount' в 'where clause' "
Как прекратить сбежать из имени столбца?>

Подробнее здесь: https://stackoverflow.com/questions/285 ... th-codeign

Вернуться в «Php»