Corrected another SQL statement for getting subjobs info.