diff --git a/web/concrete/src/File/FileList.php b/web/concrete/src/File/FileList.php
index <HASH>..<HASH> 100644
--- a/web/concrete/src/File/FileList.php
+++ b/web/concrete/src/File/FileList.php
@@ -171,8 +171,7 @@ class FileList extends DatabaseItemList implements PermissionableListItemInterfa
      */
     public function filterByDateAdded($date, $comparison = '=')
     {
-        $this->query->andWhere('f.fDateAdded ' . $comparison . ' :fDateAdded');
-        $this->query->setParameter('fDateAdded', $date);
+        $this->query->andWhere($this->query->expr()->comparison('f.fDateAdded', $comparison, $this->query->createNamedParameter($date)));
     }
 
     public function filterByOriginalPageID($ocID)
Files: allow filtering by date ranges of date added

Former-commit-id: e<I>ed5ccb<I>c8b<I>f<I>a6