Slow Query Optimisation
http://frontaccounting.com/punbb/viewtopic.php?pid=18501#p18501