sql: SELECT SQL_CALC_FOUND_ROWS 123 as staff_img_url, t_diary.*,DATE_FORMAT(t_diary.t_diary_regdate, '%Y/%m/%d %k:%i:%s') as ddate, m_staff.* FROM t_diary,m_staff WHERE t_diary_staff_id = m_staff_id and m_staff_pc_disp = 1 and t_diary_staff_mall_id = 38471 ORDER BY t_diary_regdate DESC DESC LIMIT 20, 20
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 'DESC LIMIT 20, 20' at line 1