SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}Cascais{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}' OR prCity = 'Cascais' OR prZip = 'Cascais' OR prStreet LIKE '{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}Cascais{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}' OR prCountry = 'Cascais') AND (prLocation LIKE '{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}Portugal{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}' OR prCity = 'Portugal' OR prZip = 'Portugal' OR prStreet LIKE '{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}Portugal{ca27c112c640f8a107fabe1938cc266ff521e844a4ab162b22e817719e157e72}' OR prCountry = 'Portugal')