Mako Error

Traceback (most recent call last):
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/lib/base.py", line 58, in _render
    return template.render_unicode(c=options)
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/mako/template.py", line 126, in render_unicode
    return runtime._render(self, self.callable_, args, data, as_unicode=True)
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/mako/runtime.py", line 335, in _render
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/mako/runtime.py", line 352, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/mako/runtime.py", line 385, in _exec_template
    callable_(context, *args, **kwargs)
  File "app/views/layouts/base_layout.html.mako", line 100, in render_body
    % for p in recent_posts_footer():
  File "/base/data/home/apps/s~dx13-blog-hrd/1.377205357599352019/app/helpers/recent_posts.py", line 11, in recent_posts_footer
    recent_posts = couch.recent_posts()
NameError: global name 'couch' is not defined