actually, I think it's

Code:
$query = "DELETE FROM notices WHERE id='$id';
no quotes around id (the column)