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