SELECT `advice_id`, `advice_title`, `advice_name`, `advice_prevtext`, `advice_dir`, `advice_date`, `advice_update`, `advice_status`, `advice_author`, `advice_author_name`, `advice_category`, `advice_recommend` FROM `prnd_advice` WHERE `advice_status` = '1' AND `advice_date` <= '1701942740' ORDER BY `advice_date` DESC, `advice_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