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
  • 445,704
  • 82
  • 492
  • 529
André Alçada Padez
  • 10,987
  • 24
  • 67
  • 120

1 Answers1

7

option is a MySQL reserved word.

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

codaddict
  • 445,704
  • 82
  • 492
  • 529