select MAX(SUBSTRING(wr_reply, 1, 1)) as reply from g5_write_data where wr_num = '-149587' and SUBSTRING(wr_reply, 1, 1) <> ''

2013 : Lost connection to MySQL server during query

error file : /bbs/write.php