SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}Tanger{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}' OR prCity = 'Tanger' OR prZip = 'Tanger' OR prStreet LIKE '{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}Tanger{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}' OR prCountry = 'Tanger') AND (prLocation LIKE '{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}' OR prCity = '' OR prZip = '' OR prStreet LIKE '{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}{9e25f7159f6fa847e72003159b118c1cbb186cf0567ed008013601c3369efd6e}' OR prCountry = '')