QuickBooks/Driver/Sql.php
protected function _authLast($username)
	{
		$errnum = 0;
		$errmsg = '';

		if ($arr = $this->_fetch($this->_query("
			SELECT
				write_datetime,
				touch_datetime
			FROM
				" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
			WHERE
				qb_username = '" . $this->_escape($username) . "'
			ORDER BY
				quickbooks_ticket_id DESC ", $errnum, $errmsg, 0, 1)))
		{
			return array(
				$arr['write_datetime'],
				$arr['touch_datetime'],
				);
		}

		return null;
	}
protected function _authLast($username)
	{
		$errnum = 0;
		$errmsg = '';

		if ($arr = $this->_fetch($this->_query("
			SELECT
				write_datetime,
				touch_datetime
			FROM
				" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
			WHERE
				qb_username = '" . $this->_escape($username) . "'
			ORDER BY
				quickbooks_ticket_id DESC ", $errnum, $errmsg, 0, 1)))
		{
			return array(
				$arr['write_datetime'],
				$arr['touch_datetime'],
				);
		}

		return null;
	}
Get the last date/time a particular user logged in

@param string $username
@return array