mirror of https://github.com/itflow-org/itflow
Add client_tags.client_tag_tag_id to GROUP BY
This commit is contained in:
parent
1e9c822033
commit
9de9dcd1b3
|
|
@ -20,7 +20,7 @@ $sql = mysqli_query(
|
|||
OR contact_mobile LIKE '%$phone_query%' OR location_address LIKE '%$q%' OR location_city LIKE '%$q%' OR location_state LIKE '%$q%' OR location_zip LIKE '%$q%' OR tag_name LIKE '%$q%' OR client_tax_id_number LIKE '%$q%')
|
||||
AND client_archived_at IS NULL
|
||||
AND DATE(client_created_at) BETWEEN '$dtf' AND '$dtt'
|
||||
GROUP BY clients.client_id
|
||||
GROUP BY clients.client_id, client_tags.client_tag_tag_id
|
||||
ORDER BY $sb $o LIMIT $record_from, $record_to
|
||||
");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue