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