harumph
perhaps its expecting and end ;
either that or maybe its expecting all table and column names wrapped in backticks ` (to the left of the 1 key on a standard keyboard)
i don't know of any setting that required the backtick
so try throwing in a ; a the end of you statement
$delquery = "delete from page where key=$delkey;";