You should consider priority of operators. "==" is prior to "AND".