diff --git a/src/Models/Repository/SubscriptionTypesMetaRepository.php b/src/Models/Repository/SubscriptionTypesMetaRepository.php
index <HASH>..<HASH> 100644
--- a/src/Models/Repository/SubscriptionTypesMetaRepository.php
+++ b/src/Models/Repository/SubscriptionTypesMetaRepository.php
@@ -30,7 +30,7 @@ class SubscriptionTypesMetaRepository extends Repository
 
     final public function getMeta(IRow $subscriptionType, string $key): Selection
     {
-        return $this->getTable()->where(['subscription_type_id' => $subscriptionType->id, 'key' => $key]);
+        return $subscriptionType->related('subscription_types_meta')->where(['key' => $key]);
     }
 
     final public function subscriptionTypeMeta(IRow $subscriptionType): array
Correctly utilize Nette's magic of related() method