SQL Explain

Query:
{{ sql|formatsql }}
Parameters:
{% if params %}{{ params|join:", "|escape }}{% else %} {% endif %}
{% for header in headers %} {% if forloop.first %} {% else %} {% if forloop.last %} {% else %} {% endif %} {% endif %} {% endfor %} {% for row in explain %} {% for value in row %} {% endfor %} {% endfor %}
{{ header|title|escape }}{{ header|title|escape }}{{ header|title|escape }}
{{ value|escape }}
{% if indexes %}

Indexes

{% for table, rows in indexes.iteritems %} {% for name, row in rows.iteritems %} {% endfor %} {% endfor %}
Table Name Columns Type Cardinality
{{ table|escape }} {{ name|escape }} {{ row.0|join:", "|escape }} {{ row.1|escape }} {{ row.2 }}
{% endif %}

Traceback