SELECT * FROM `Registrations` WHERE `Role` = "Attendee" AND `RegistrationStatus_ID` = "1" AND `DigSignature` IS NULL AND (`Event_ID` = "147" OR `Event_ID` = "155" OR `Event_ID` = "160")
When you mix AND and OR, it is useful to use parens to group things together. Even when this is not necessary for logic, it is sometimes useful for others to understand your intentions.
Paul tomblin
source share