Add client_tags.client_tag_tag_id to GROUP BY

This commit is contained in:
Brent Hopkins 2023-05-11 02:43:58 -05:00 committed by GitHub
parent 1e9c822033
commit 9de9dcd1b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
");