Change,
$delete_query = DELETE FROM table_name WHERE ID = $ID;
To,
$delete_query = "DELETE FROM table_name WHERE ID = $ID";
Or,
$delete_query = 'DELETE FROM table_name WHERE ID = ' . $ID;
It is also recommended to clean your input ($_GET['ID']), before using this in a query.