select MIN(SUBSTRING(wr_reply, 1, 1)) as reply from where wr_num = '' and SUBSTRING(wr_reply, 1, 1) <> ''

1064 : 'SQL ±¸¹®¿¡ ¿À·ù°¡ ÀÖ½À´Ï´Ù.' ¿¡·¯ °°À¾´Ï´Ù. ('where wr_num = '' and SUBSTRING(wr_reply, 1, 1) <> ''' ¸í·É¾î ¶óÀÎ 1)

error file : /bbs/write.php