select a.* , '' AS MCD , (select count(*) from where MREF = a.MREF and MSTEP > a.MSTEP) as MREPLY from a order by INSDT DESC, MRef DESC, MStep ASC, MSEQ DESC limit 0, 5
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 'where MREF = a.MREF and MSTEP > a.MSTEP) as MREPLY from a o' at line 3
error file : /main/main.html