SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}Onil{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}' OR prCity = 'Onil' OR prZip = 'Onil' OR prStreet LIKE '{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}Onil{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}' OR prCountry = 'Onil') AND (prLocation LIKE '{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}Spain{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}Spain{94dbd588747086ad7b4c910cc3dfcb9eda7a2a1348f94a3e6ab579c5400ed972}' OR prCountry = 'Spain')