・テーブル項目名にsetとかシステム関数っぽいものがはいっていると
select shouhin_id, type , set from test.table where type = 1;
多分、こんなエラー出ると思います↓
[Err] 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 'setfrom test.table where type = 1' at line 1
そもそもテーブルの項目名にsetとか入れるのが失敗なのですが、入っているものは仕方ないということで対処法
select shouhin_id , type , a.set from test.table as a where type = 1;
fromで指定したテーブルの後ろに「 as句で テーブル名称をa 」とか別名指定して、そのうえで a.setという感じで指定すれば↓
![sql結果](https://apl-py.com/blog/wp-content/uploads/2015/06/f986a00d0928068dac9b08904e0bbbb31.jpg)
という感じです。