public function selectSingleArray($q, $args = array())
    {
        $this->exec($q, $args);
        return $this->_sth ? $this->_sth->fetch(\PDO::FETCH_ASSOC) : false;
    }
public function selectSingleArray($q, $args = array())
    {
        $this->exec($q, $args);
        return $this->_sth ? $this->_sth->fetch(\PDO::FETCH_ASSOC) : false;
    }
public function selectSingleArray ( $ q , $ args = array ( ) ) { $ this -> exec ( $ q , $ args ) ; return $ this -> _sth ? $ this -> _sth -> fetch ( \ PDO :: FETCH_ASSOC ) : false ; }
Fetch a single row as associative array

Fetches the first row of results, so from the caller's side it's
equivalent to selectArray()[0] however only the first row is ever
fetched from the server.

Note that if you're not selecting by a unique ID, a LIMIT of 1 should
still be specified in SQL for optimal performance.

@param string $q    SQL query with '?' value placeholders
@param array  $args (Optional) List of values corresponding to placeholders

@return array Single associative row
Fetch a single row as associative array