Time : 02:01:04 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=0 DESC LIMIT ?, ?' at line 1 Raw SQL : SELECT no, best, title, content, likes, hit, reg_date FROM 2015_clinic_diary WHERE no > :no AND d_show = :show AND del = :del ORDER BY best ASC, 'A=0 DESC LIMIT :startNum, :rowCount