     }
   ]
 
-columns = [
+allColumns = [
   {
     title: "Match ID"
     property: "id"


fs            = require "fs"
moment        = require "moment"

Query         = require "../query"
toLatexTable  = require "../toLatexTable"

  opts.limit = 10
  
  fields = []
  activeColumns = []
  for column in allColumns
    if column.test?
      activeColumns.push column if column.test opts
    else
      activeColumns.push column
  
  fieldsSql = _.pluck activeColumns, "sql"
      
  select = "SELECT " + (fieldsSql.join ", ")
  from = "FROM playermatch p, tntmatch t"
  where = "WHERE t.matchid = p.matchid"
  limit = "LIMIT #{opts.limit}"
