0da6669fac
DebugStack starts queries array from index 1 rather than 0 so the last query was never printed. Also array params caused an 'Array to string conversion' error