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