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