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

This prevents some problems with DBAL.

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