[BUGFIX] Fix SQL syntax

Use single quotes to retain compatibility with PostgreSQL.

Change-Id: If3b900d08330bb96ce37fcbefcd110ccfd9b24b5
Resolves: #45826
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/18475
Reviewed-by: Felix Kopp
Reviewed-by: Rico Sonntag
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn