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