Fix delete SQL statement
Merge pull request #1273 from rgrochowicz/develop

Fix delete SQL statement