SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}Edremit{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}' OR prCity = 'Edremit' OR prZip = 'Edremit' OR prStreet LIKE '{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}Edremit{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}' OR prCountry = 'Edremit') AND (prLocation LIKE '{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}Cyprus{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}' OR prCity = 'Cyprus' OR prZip = 'Cyprus' OR prStreet LIKE '{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}Cyprus{6aaeb2d3bc355792df63566235bb8c2dfd6275641b51ab74f6385509fe31030c}' OR prCountry = 'Cyprus')