SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}Gyenesdiás{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}' OR prCity = 'Gyenesdiás' OR prZip = 'Gyenesdiás' OR prStreet LIKE '{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}Gyenesdiás{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}' OR prCountry = 'Gyenesdiás') AND (prLocation LIKE '{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}Hungary{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}' OR prCity = 'Hungary' OR prZip = 'Hungary' OR prStreet LIKE '{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}Hungary{65cff9baeec682cd97a1b99d3d859d5f76ea419ee39bf116f0174eb2fd0194d1}' OR prCountry = 'Hungary')