SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}Ravda{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}' OR prCity = 'Ravda' OR prZip = 'Ravda' OR prStreet LIKE '{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}Ravda{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}' OR prCountry = 'Ravda') AND (prLocation LIKE '{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}Bulgaria{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}' OR prCity = 'Bulgaria' OR prZip = 'Bulgaria' OR prStreet LIKE '{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}Bulgaria{aa91dc9232e8da60404c00ddf271298b976d0d285251e2973a322bdccba94c99}' OR prCountry = 'Bulgaria')