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