MySQL字段';选项';它不起作用了

MySQL字段';选项';它不起作用了,mysql,sql,joomla,Mysql,Sql,Joomla,MySQL查询是 SELECT option as value, name as text from jos_components where parent = 0 and enabled=1 order by name 我有一个表jos\u components,它有字段名选项。我想运行上面的查询,但它给了我一个错误 #1064 - You have an error in your SQL syntax; check the manual that corresponds to you

MySQL查询是

 SELECT option as value, name as text from jos_components where parent  = 0 and enabled=1 order by name
我有一个表
jos\u components
,它有字段名
选项
。我想运行上面的查询,但它给了我一个错误

#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 
有什么问题吗?

选项是一个。您必须在查询中用反勾号将其括起来。试试这个:

SELECT `option` as value, name as text from jos_components where parent  = 0 and enabled=1 order by name