SELECT `s` . `ScheduleId` , `s` . `AuditId` FROM `Schedular_Master` AS `s` WHERE ( ( ( ( ( `s` . `UserId` = ? ) AND `s` . `IsActive` ) AND NOT ( `s` . `IsDeleted` ) ) AND `s` . `IsCompleted` ) AND ( `s` . `ScheduleStatus` = ? ) ) AND ( `s` . `ScheduleId` = ? ) 