yanlış yerde kullanmışsın, böyle dene

$sql = ('SELECT il FROM `iller` GROUP BY `il` ORDER BY `id` DESC LIMIT 0 , 50')