원격대학원의 를 소개합니다.

SELECT a.idx, a.title1, a.turn1, (SELECT b.idx FROM page b WHERE b.cate = a.cate AND b.sub_idx = a.idx AND sub IN (1) ORDER BY b.turn2 desc LIMIT 1) AS sub_idx from page a WHERE a.cate IN () AND a.sub in (0) order BY a.turn1 desc

1064 : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND a.sub in (0) order BY a.turn1 desc' at line 3

error file : /bbs/faq.php