1

i need to do the following select:

select distinct type as option from pages

but i keep getting errors. Can you help me please?

codaddict
  • 429,241
  • 80
  • 483
  • 523
André Alçada Padez
  • 10,111
  • 22
  • 62
  • 114

1 Answers1

7

option is a MySQL reserved word.

Enclose it in back-ticks or use a different non-reserved-word alias.

codaddict
  • 429,241
  • 80
  • 483
  • 523