Try using parentheses inside your sql:

Select * from table_name where (col1=1 OR col2=1) and col3=0
Select * from table_name where col1=1 OR (col2=1 and col3=0)

They make a big difference, also helps to indentify what you're selecting when you 
come back to the sql later.

Adam

Reply via email to