[BUGFIX] #4319 Change != to <> in SQL

This prevents problems with DBAL.

Change-Id: I0fc54da86de79ba2af1cedde1eeae6858e9a1082
Reviewed-on: http://review.typo3.org/35447
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>