If you encounter errors like this recently
$ mtn pull
mtn: fatal: error: null result in query: …
this might because you’ve updated your SQLite version to 3.7.3 or later. The SQLite guys fixed a bug in their API which we have worked around for ages. [This patch](http://pastebin.ca/1970723) fixes the issue and another minor nitpick. Its unfortunately not part of the recently released 0.48.1 and must therefor be applied manually.
If you can’t recompile, the best thing for now is to downgrade SQLite to 3.7.2 or earlier. You may also want to bug your packager of choice to
include the above fix until we release 0.99 – the next version which includes the above fix as well – in a couple of days.
Sorry for the inconveniences!
Dear readers, FYI this has since been addressed in relese 0.99.1, which works both with older and newer SQLite versions.