Error on delete query resolved // The delete query will have to be improved