SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}Tarifa{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}' OR prCity = 'Tarifa' OR prZip = 'Tarifa' OR prStreet LIKE '{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}Tarifa{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}' OR prCountry = 'Tarifa') AND (prLocation LIKE '{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}Spanien{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}' OR prCity = 'Spanien' OR prZip = 'Spanien' OR prStreet LIKE '{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}Spanien{f331c62473c69200ff662c3f9cfc5d410eeab267e24f2594b40fc48064742ad0}' OR prCountry = 'Spanien')