diff --git a/typo3/sysext/core/Classes/Database/QueryView.php b/typo3/sysext/core/Classes/Database/QueryView.php
index 2e3b565697532d51efa9a5cce38b16780d657c84..ebee236bedb3538ef294b3c5f8517bc975f5c5ff 100644
--- a/typo3/sysext/core/Classes/Database/QueryView.php
+++ b/typo3/sysext/core/Classes/Database/QueryView.php
@@ -622,11 +622,11 @@ class QueryView
                 $queryBuilder->getRestrictions()->removeAll()->add(GeneralUtility::makeInstance(DeletedRestriction::class));
                 $queryBuilder->count('*')->from($table);
                 $likes = [];
-                $excapedLikeString = '%' . $queryBuilder->escapeLikeWildcards($swords) . '%';
+                $escapedLikeString = '%' . $queryBuilder->escapeLikeWildcards($swords) . '%';
                 foreach ($fields as $field) {
                     $likes[] = $queryBuilder->expr()->like(
                         $field,
-                        $queryBuilder->createNamedParameter($excapedLikeString, \PDO::PARAM_STR)
+                        $queryBuilder->createNamedParameter($escapedLikeString, \PDO::PARAM_STR)
                     );
                 }
                 $count = $queryBuilder->orWhere(...$likes)->execute()->fetchColumn(0);
@@ -641,7 +641,7 @@ class QueryView
                     foreach ($fields as $field) {
                         $likes[] = $queryBuilder->expr()->like(
                             $field,
-                            $queryBuilder->createNamedParameter($excapedLikeString, \PDO::PARAM_STR)
+                            $queryBuilder->createNamedParameter($escapedLikeString, \PDO::PARAM_STR)
                         );
                     }
                     $statement = $queryBuilder->orWhere(...$likes)->execute();