diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl index 8cd8e4ccd2b..7c94c771dec 100644 --- a/src/node_flat_sql.erl +++ b/src/node_flat_sql.erl @@ -416,7 +416,7 @@ get_entity_subscriptions_for_send_last(Host, Owner) -> H = encode_host(Host), SJ = encode_jid(SubKey), GJ = encode_jid(GenKey), - GJLike = <<(encode_jid_like(GenKey))/binary, "%">>, + GJLike = <<(encode_jid_like(GenKey))/binary, "/%">>, Query = case SubKey of GenKey ->