However, be carefult with commits. Should you commit a query from which you wish to display information, the information returned from the query will no longer be available to madSql's reporting tool. Thus far, madSql is a good tool so long as you have a prespecified query in mind. When madSql parses your query statement, it substitutes the value of the sql variable prior to passing your sql query statement onto the underlying database. Just so you know.
Sql variables are quite cool.
With them, you can create arbitrarily long and arbitrarily complex expressions. Using sql variables you can construct entire sql query statements. Sql variables may be nested within other sql variables. However, it's not done yet. This makes them more readily distinguishable from html tags.