Fixed SQL join mode.