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 'id_produit = '12896' AND DATE_FORMAT(date_fin,'%Y-%m-%d %H:%i:%s') > '2024-11-07' at line 1