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