@ -139,6 +139,8 @@
FROM
logpm_basicdata_client lbcc
LEFT JOIN logpm_basicdata_store_brand lbsbb ON lbcc.id = lbsbb.client_id
WHERE
lbsbb.is_deleted = 0
GROUP BY
lbcc.id
) AS t ON t.id = lbc.id