SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Tignale{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCity = 'Tignale' OR prZip = 'Tignale' OR prStreet LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Tignale{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCountry = 'Tignale') AND (prLocation LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Loc{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCity = 'Loc' OR prZip = 'Loc' OR prStreet LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Loc{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCountry = 'Loc') AND (prLocation LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Castagnole{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCity = 'Castagnole' OR prZip = 'Castagnole' OR prStreet LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Castagnole{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCountry = 'Castagnole') AND (prLocation LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Italy{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCity = 'Italy' OR prZip = 'Italy' OR prStreet LIKE '{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}Italy{c5ecd10451a7f39ddcd0c5fbf61c9f8b65a6bead70e019c515583c48dd195e2e}' OR prCountry = 'Italy')