QuickBooks/Driver/Sql.php
protected function _errorLog($ticket, $errnum, $errmsg)
	{
		if ($ticket_id = $this->_ticketResolve($ticket))
		{
			$db_errnum = 0;
			$db_errmsg = '';

			return $this->_query("
				UPDATE
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
				 SET
					lasterror_num = '" . $this->_escape($errnum) . "',
					lasterror_msg = '" . $this->_escape(substr($errmsg, 0, 255)) . "'
				WHERE
					quickbooks_ticket_id = " . (int) $ticket_id, $db_errnum, $db_errmsg);
		}

		return false;
	}
protected function _errorLog($ticket, $errnum, $errmsg)
	{
		if ($ticket_id = $this->_ticketResolve($ticket))
		{
			$db_errnum = 0;
			$db_errmsg = '';

			return $this->_query("
				UPDATE
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
				 SET
					lasterror_num = '" . $this->_escape($errnum) . "',
					lasterror_msg = '" . $this->_escape(substr($errmsg, 0, 255)) . "'
				WHERE
					quickbooks_ticket_id = " . (int) $ticket_id, $db_errnum, $db_errmsg);
		}

		return false;
	}
Store the last error which occured

@param string $ticket		The session ticket for the session this error occured within
@param string $errnum		The error number
@param string $errmsg		The error message
@return boolean