Time : 06:11:55 SQLSTATE[42000]: Syntax error or access violation: 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 'A.no Desc AND A.reg_date DESC LIMIT ?, ?' at line 1 Raw SQL : SELECT A.no, A.category, A.title, A.content, A.hit, A.reg_date, B.no AS fno, B.attach, B.attach_ori, B.mod_date FROM 2015_post A LEFT JOIN 2015_attach B ON A.no = B.wno AND B.code = :code AND B.seq = :seq WHERE A.no > :no AND A.d_show = :show AND A.del = :del AND A.category LIKE :category ORDER BY (A.no = 19 or A.no = 28 or A.no = 39 or A.no = 47) A.no Desc AND A.reg_date DESC LIMIT :startNum, :rowCount Time : 06:11:55 SQLSTATE[42000]: Syntax error or access violation: 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 'A.no Desc AND A.reg_date DESC LIMIT ?, ?' at line 1 Raw SQL : SELECT A.no, A.category, A.title, A.content, A.hit, A.reg_date, B.no AS fno, B.attach, B.attach_ori, B.mod_date FROM 2015_post A LEFT JOIN 2015_attach B ON A.no = B.wno AND B.code = :code AND B.seq = :seq WHERE A.no > :no AND A.d_show = :show AND A.del = :del AND A.category LIKE :category ORDER BY (A.no = 19 or A.no = 28 or A.no = 39 or A.no = 47) A.no Desc AND A.reg_date DESC LIMIT :startNum, :rowCount