Usar comilla invertida(`) o Comilla simple(') para dar el nombre de alias de la columna en MySQL.
Prueba esto:
SELECT `id` AS 'key', `country_name` AS value
FROM countries;
O
SELECT `id` AS `key`, `country_name` AS value
FROM countries;
Usar comilla invertida(`) o Comilla simple(') para dar el nombre de alias de la columna en MySQL.
Prueba esto:
SELECT `id` AS 'key', `country_name` AS value
FROM countries;
O
SELECT `id` AS `key`, `country_name` AS value
FROM countries;