AND has a higher precedence than OR , so your existing expression is currently evaluated as:
WHERE (t.type = 'single' AND t.status='1' AND t.org = 'RA') OR t.org = 'DUAL'
To force the use of alternative logic, explicit parentheses must be included:
WHERE t.type = 'single' AND t.status='1' AND (t.org = 'RA' OR t.org = 'DUAL')
However, in this case, you can use MySQL IN() instead of OR :
WHERE t.type = 'single' AND t.status='1' AND t.org IN ('RA','DUAL')
source share