[Data-Grid] Fixed a bug which caused an invalid SQL query on disabled soft-deletion.