query("SELECT CollageID FROM collages_comments WHERE ID='$PostID'"); list($CollageID) = $DB->next_record(); $DB->query("DELETE FROM collages_comments WHERE ID='$PostID'"); $Cache->delete_value('collage_'.$CollageID); $Cache->delete_value('collage_'.$CollageID.'_catalogue_0'); //Because these never exceed 500 posts, and I'm really tired right now. ?>