Tweak constant in simple join query