Fix SQL error in patch.


git-svn-id: http://voronet.francu.com/repos/DEX@1048 8d550267-2627-4c68-899f-85492a8dd5ca