Removing a sql query with invalid syntax

--HG--
extra : source : 620700e4b1ecb2cc0b2a3f11e9051d415e5356fa
Changelog entry

--HG--
extra : source : 28301c20cd4117e6c7622b6b09cfc3f40870a52c
Merge pull request #485 from einhverfr/master

Removing sql query that can't work