$this->db->query("DELETE FROM `" . DB_PREFIX . "ebay_profile` WHERE `ebay_profile_id` = '".(int)$id."' LIMIT 1"); if($this->db->countAffected() > 0) { return true; }else{ return false; }