fix deletion of partitioned tables

* when the WHERE clause queried for a non existent column
* when the WHERE clause queried for a non existent partition value