Prevent SQL error on List panel

On new installs, if cookie has not yet been set, the temporay table
generation no longer issues a warning if lang is empty.

Also, show all SQL errors from now on to aid debugging.