diff --git a/src/flask_covid19/blueprints/data_rki/rki_model.py b/src/flask_covid19/blueprints/data_rki/rki_model.py
index dde87528741373c34413d6b09732d53f490db277..2ac83217a4e1920f9f646bc3e04a16ff02de97c1 100644
--- a/src/flask_covid19/blueprints/data_rki/rki_model.py
+++ b/src/flask_covid19/blueprints/data_rki/rki_model.py
@@ -281,7 +281,7 @@ class RkiData(BlueprintFactTable):
     @classmethod
     def find_by_date_reported_and_location(cls, date_reported: RkiMeldedatum, location: RkiLandkreis):
         return db.session.query(cls).filter(
-            and_((cls.date_reported.id == date_reported.id), (cls.location.id == location.id))
+            and_((cls.date_reported == date_reported), (cls.location == location))
         ).one_or_none()
 
     @classmethod