MySQLで末尾からN文字前までを切り出す ref: http://qiita.com/ques0942/items/d0a81b471d0575178096