public function update(array $values, $where, $from = "", $quotes = null)
    {
        $from = $this->fromCheck($from, $quotes);
        $set = self::updateSet($values);

        //if an error is occurred mysqltcs throw an exception
        $this->mysqltcs->executeQuery("UPDATE $from SET $set WHERE $where;");

        return $this->mysqltcs->getAffectedRows();
    }