for mysql
Code:
WHERE A AND B OR C
// means
WHERE (A AND B) OR C
// or
WHERE A AND (B OR C) // <-- I think this is the true one but not sure
?