I spotted errors like this in the log
"SELECT count(civicrm_mailing_event_bounce.id) as bounces,
civicrm_mailing_bounce_type.hold_threshold as threshold FROM civicrm_mailing_event_bounce INNER JOIN civicrm_mailing_bounce_type ON civicrm_mailing_event_bounce.bounce_type_id = civicrm_mailing_bounce_type.id INNER JOIN civicrm_mailing_event_queue ON civicrm_mailing_event_bounce.event_queue_id = civicrm_mailing_event_queue.id INNER JOIN civicrm_email ON civicrm_mailing_event_queue.email_id = civicrm_email.id WHERE civicrm_email.id = AND (civicrm_email.reset_date IS NULL OR civicrm_mailing_event_bounce.time_stamp >= civicrm_email.reset_date) GROUP BY civicrm_mailing_event_bounce.bounce_type_id ORDER BY threshold, bounces desc [nativecode=1064 ** 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 'AND (civicrm_email.reset_date IS NULL OR civicrm_ma' at line 11]"
I believe they are triggered by a jenkins drush job