SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}Selfkant{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}' OR prCity = 'Selfkant' OR prZip = 'Selfkant' OR prStreet LIKE '{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}Selfkant{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}' OR prCountry = 'Selfkant') AND (prLocation LIKE '{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}Germany{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}Germany{1a9dc74ea02baede75e0bd57375cd4d84410c008b71581afbefb500593d3b213}' OR prCountry = 'Germany')