SELECT * FROM joblist WHERE A = 1 AND Exp >= '2022-09-25' GROUP BY CAT, Day_post DESC, JobID

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 'DESC, JobID' at line 1