Mod_python error: "PythonHandler app::handler"

Traceback (most recent call last):

  File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/var/www/sclqld/htdocs/lu/app.py", line 750, in handler
    content_type, response = url[1](req,

  File "/var/www/sclqld/htdocs/lu/app.py", line 247, in items
    item = session.query(item_class).get(id)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/query.py", line 85, in get
    return self._get(key, ident, **kwargs)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/query.py", line 724, in _get
    return q.all()[0]

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/query.py", line 571, in all
    return list(self)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/query.py", line 619, in __iter__
    return self._execute_and_instances(context)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/query.py", line 622, in _execute_and_instances
    result = self.session.execute(querycontext.statement, params=self._params, mapper=self.mapper)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/orm/session.py", line 527, in execute
    return self.__connection(engine, close_with_result=True).execute(clause, params or {}, **kwargs)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/engine/base.py", line 779, in execute
    return Connection.executors[c](self, object, multiparams, params)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/engine/base.py", line 829, in _execute_clauseelement
    return self._execute_compiled(elem.compile(dialect=self.dialect, column_keys=keys, inline=len(params) > 1), distilled_params=params)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/engine/base.py", line 841, in _execute_compiled
    self.__execute_raw(context)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/engine/base.py", line 852, in __execute_raw
    self._cursor_execute(context.cursor, context.statement, context.parameters[0], context=context)

  File "/usr/lib64/python2.4/site-packages/sqlalchemy/engine/base.py", line 869, in _cursor_execute
    raise exceptions.DBAPIError.instance(statement, parameters, e)

OperationalError: (OperationalError) (2006, 'MySQL server has gone away') u'SELECT areas_1.keyword AS areas_1_keyword, areas_1.name AS areas_1_name, sls.id AS sls_id, sls.ts_created AS sls_ts_created, sls.masked AS sls_masked, sls.masked_feeds AS sls_masked_feeds, sls.name AS sls_name, sls.year AS sls_year, sls.jurisdiction AS sls_jurisdiction, sls.url AS sls_url, sls.expl_memo_url AS sls_expl_memo_url, sls.enactment AS sls_enactment, sls.blurb AS sls_blurb \nFROM sls LEFT OUTER JOIN sls_areas AS sls_areas_2 ON sls.id = sls_areas_2.sl LEFT OUTER JOIN areas AS areas_1 ON areas_1.keyword = sls_areas_2.area \nWHERE sls.id = %s ORDER BY sls.id, sls_areas_2.sl' ['409']