SELECT `p` . `Id` , `p` . `AccountId` , `p` . `Active` , `p` . `CreatedBy` , `p` . `CreatedDate` , `p` . `Deleted` , `p` . `DeletedBy` , `p` . `DeletedDate` , `p` . `EndDate` , `p` . `IsFreeTrial` , `p` . `IsPlanActive` , `p` . `ModifiedBy` , `p` . `ModifiedDate` , `p` . `PlanDurationType` , `p` . `PlanType` , `p` . `StartDate` FROM `PlanHistories` AS `p` WHERE `p` . `AccountId` = ? 