SQL Error
select v.author, v.refno, v.sortno, v.depth, v.title, v.regdate, v.content, v.filename, v.filepath, v.readcount, v.img_width, (select seq from qna with (nolock) where sortno = v.prevseq) as prevseq, (select seq from qna with (nolock) where sortno = v.nextseq) as nextseq, (select title from qna with (nolock) where sortno = v.prevseq) as prevtitle, (select title from qna with (nolock) where sortno = v.nextseq) as nexttitle from ( select n.author, n.sortno, n.refno, n.depth, n.title, convert(char(10), n.regdate, 102) as regdate, n.content, n.fileName, n.filePath, n.readcount, n.img_width, (select max(sortno) from qna with (nolock) where sortno < n.sortno) as prevseq, (select min(sortno) from qna with (nolock) where sortno > n.sortno) as nextseq from qna n with (nolock) where n.seq = ) v