Ver originalSELECT f.codcliFROM f_cli f INNER JOIN f_amb a USING(codcli)WHERE a.procli = 'madrid' XOR (pro1 =29 OR pro2 =29)LIMIT 0 , 30;