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