Error !

IndexError: list index out of range

cat = site.LimeAPI.map_sqlresult_to_dict_list( site.getCatScript(id=site.REQUEST.get('id') ) ) %> // <a href="${site.attr('sitePath')}/shop?id=${str(site.REQUEST.get('id'))}">${cat[0]['subjectname']}</a> % else: <% book = site.getBook( dealerid=site.attr('dealerid'), isbnean=site.REQUEST.get('id') ) if book: book = site.LimeAPI.map_sqlresult_to_dict_list( book )
templates/default/functions/components, line 11:
// <a href="${site.attr('sitePath')}/shop?id=${str(site.REQUEST.get('id'))}">${cat[0]['subjectname']}</a>
templates/default/freebook_site_template, line 94:
${renderBread(book=site.LimeAPI.map_sqlresult_to_dict_list(booky))}
/srv/limetendata/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 890:
callable_(context, *args, **kwargs)
/srv/limetendata/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 864:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/limetendata/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/runtime.py, line 829:
**_kwargs_for_callable(callable_, data))
/srv/limetendata/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.3-py2.7.egg/mako/template.py, line 445:
return runtime._render(self, self.callable_, args, data)
/var/limecms/fribokhandel/fribokhandel01/fribokhandel-inst/Products/LimeTemplate/LimeTemplate.py, line 703:
html = mytemplate.render(object=object, site=site, **extra)