fix stubs dump query to use straight join