Eh, I suppose that might be happening, but this seems to be the source of the problem I was complaining about last night, namely my database query being executed twice.
Also when you comment out the last line, which is a HTML::Template->param(); call, I no longer receive two warnings. I also no longer receive two warnings if i change the param call to one with no params, eg
that also only gives me one warning.