Oh it works for me. It works fine on the left. It works fine on the right on every page but ONE. The main index which of course has Photopost. Now if I remove the ubbt_photopost.tmpl require from the ubbthreads.tmpl the sidebar comes up fine with no sql