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