Fixed delete query
Merge pull request #301 from Lerogero/master

Fixed delete query