Possible Duplicate:
Mysql or/and precedence?
If I have a query that looks like this:
SELECT *
FROM `users`
WHERE 'gen'='0' OR `gen`='1' AND `id` IN ('405','406','407',...),
will it return the results from users where (gen='0' or gen='1') and (id IN (...), or some other result? if so, can i put parentheses around the clauses to separate?
thanks.