Prova a togliere l'*:

$query = "DELETE FROM struct_chars where char_id = '".$char_id."';";