SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}Dolores{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}' OR prCity = 'Dolores' OR prZip = 'Dolores' OR prStreet LIKE '{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}Dolores{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}' OR prCountry = 'Dolores') AND (prLocation LIKE '{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}Spain{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}Spain{cb5fb5bc82fbdc55d16a7434c46a28dc3b535f5828cd054e3f7513d0ac5825ca}' OR prCountry = 'Spain')