    public static function delete($id)
    {
        $id = Typo::int($id);
        try {
            $vars1 = array(
                        'table' => 'posts',
                        'where' => array(
                                    'id' => $id,
                                    ),
                        );
            $d = Db::delete($vars1);

            $vars2 = array(
                        'table' => 'posts_param',
                        'where' => array(
                                    'post_id' => $id,
                                    ),
                        );
            $d = Db::delete($vars2);
            Hooks::run('post_sqldel_action', $id);

            return true;
        } catch (Exception $e) {
            return $e->getMessage();
        }
    }
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.