Getting error while executing simple SQL select query

@ Maciej Kuzmicz- Could you help here to sort out the issue.