@@ -463,6 +463,7 @@
</foreach>
</if>
)
+ WHERE dtoA.valid=TRUE AND dtoB.valid=TRUE
GROUP BY
dtoA.id
<include refid="pageSet">