fix deletion of partitioned tables

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