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