Hi, Gunnar!
and "and %PREFIX%GROUP_TO_MESSAGE.REGION = ?" has to be here too: we may have several applications with the same DB, that have the same channel, but in different regions.