MySQL запрос
SELECT option as value, name as text from jos_components where parent = 0 and enabled=1 order by name
У меня есть таблица jos_components
с именем поля option
. Я хочу выполнить запрос выше, но он выдает ошибку.
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option as value, name as text from jos_components where parent = 0 and enabled=1' at line 1
В чем проблема?