Update MY_Model.php

resolved few bugs in delete()