diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
index 9b24992e3..5dd530b90 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml
@@ -896,6 +896,12 @@
WHERE
l.channel != 'Settlement'
AND l.system_generate = 0
+
+ AND l.client_id IN
+
+ #{client_id}
+
+
AND l.client_id=#{client_id}