function getOne($sql, $params = array())
    {
        //echo 'get one --- ';

        $data = $this->query ($sql, $params);

        if (count ($data) > 0)
        {
            $data = array_values ($data[0]);
            return $data[0];
        }
        return false;
    }