SELECT `n`.`news_id`, `n`.`news_title`, `n`.`news_name`, `n`.`news_prevtext`, `n`.`news_dir`, `n`.`news_date`, `n`.`news_update`, `n`.`news_status`, `n`.`news_author`, `n`.`news_author_name`,`n`. `news_category`, `n`.`news_recommend` FROM `prnd_news` AS `n` LEFT JOIN `prnd_news_comment` AS `c` ON `n`.`news_id` = `c`.`comment_news` WHERE `n`.`news_status` = '1' AND `n`.`news_date` <= '1558669701' AND `c`.`comment_active` = '1' GROUP BY `c`.`comment_news` ORDER BY COUNT(`c`.`comment_id`) DESC LIMIT -12,12
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 '-12,12' at line 1