Warning: Undefined array key "post_id" in C:\xampp\htdocs\API\comment.php on line 17

Fatal error: Uncaught mysqli_sql_exception: 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 '' at line 10 in C:\xampp\htdocs\API\comment.php:29 Stack trace: #0 C:\xampp\htdocs\API\comment.php(29): mysqli->query('SELECT\r\n ...') #1 {main} thrown in C:\xampp\htdocs\API\comment.php on line 29