SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}Beuren{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCity = 'Beuren' OR prZip = 'Beuren' OR prStreet LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}Beuren{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCountry = 'Beuren') AND (prLocation LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}(Hochwald){309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCity = '(Hochwald)' OR prZip = '(Hochwald)' OR prStreet LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}(Hochwald){309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCountry = '(Hochwald)') AND (prLocation LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}Germany{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}Germany{309c4504da6c307b6c434dd905dabb39a5c6c9ea90faf46f2f6b7d63f578bbd7}' OR prCountry = 'Germany')