SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Son{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCity = 'Son' OR prZip = 'Son' OR prStreet LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Son{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCountry = 'Son') AND (prLocation LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Rapinya{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCity = 'Rapinya' OR prZip = 'Rapinya' OR prStreet LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Rapinya{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCountry = 'Rapinya') AND (prLocation LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Spain{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}Spain{6708b01d17ed3c82b9fdbec2c72a094bd3008f4b7b5597a35950a59056d67c32}' OR prCountry = 'Spain')