Here's a SELECT statement. If I escaped '%' with '%%', it will run and still list all records. It doesn't seem to filter the records.
SELECT a.SyCampusID,b.FirstName,b.LastName
FROM AdEnroll a (nolock)
inner join SyStudent b (nolock)
on a.SyStudentID = b.SyStudentId
inner join SySchoolStatus c (nolock)
on a.SySchoolStatusID = c.SySchoolStatusID
inner join SyCampus d (nolock)
on a.SyCampusID = d.SyCampusID
where a.SySchoolStatusID in ( 67, 68, 72, 103, 104, 106, 108, 70, 96, 107, 105, 109, 110 )
and DATEDIFF( day, GETDATE(), a.ExpStartDate ) < 63
and a.ExpStartDate between '10-24-2022' and '10-24-2022 11:59pm'
and a.AdShiftID = 18
and b.OtherEmail not like '%gmail.com%'
and b.email not like '%gmail.com%'