UPDATE `tbltenant_onboarding_steps` SET status = 1 
 WHERE  onboarding_steps_static_id = (SELECT id FROM tblonboarding_steps_static WHERE code_name = 'quickbook_sync') AND  tenant_id IN 
(SELECT DISTINCT tenant_id FROM tbltenant_qb_sync);