SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}Mahmutlar{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}' OR prCity = 'Mahmutlar' OR prZip = 'Mahmutlar' OR prStreet LIKE '{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}Mahmutlar{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}' OR prCountry = 'Mahmutlar') AND (prLocation LIKE '{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}Turkey{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}' OR prCity = 'Turkey' OR prZip = 'Turkey' OR prStreet LIKE '{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}Turkey{2bdcffe3ac58e06467be384a271b976e43571b668d6141f524b38a91fa06e4a6}' OR prCountry = 'Turkey')