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