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