fix: Corrige erro SQL de ORDER BY com DISTINCT
- Adiciona 'cp.maturity' à lista SELECT no método Readjustment para resolver o erro 'Expression #1 of ORDER BY clause is not in SELECT list, references column 'myadmin.cp.maturity' which is not in SELECT list; this is incompatible with DISTINCT'.
This commit is contained in:
parent
8beadd3a65
commit
944346d977
1 changed files with 1 additions and 0 deletions
1
vendor/model/ClientProducts.class.php
vendored
1
vendor/model/ClientProducts.class.php
vendored
|
|
@ -196,6 +196,7 @@ class ClientProducts
|
|||
c.email,
|
||||
c.contract_type,
|
||||
c.contract_date,
|
||||
cp.maturity,
|
||||
(select cp.maturity from client_products cp where cp.clients_id = c.clients_id limit 0, 1) as due_date
|
||||
from clients c
|
||||
left join client_products cp on c.clients_id = cp.clients_id
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue