public static function deleteRow($db, $table, $id_field, $id)
    {
        $id_field = new SwatDBField($id_field, 'integer');
        $sql = 'delete from %s where %s = %s';

        $sql = sprintf(
            $sql,
            $table,
            $id_field->name,
            $db->quote($id, $id_field->type)
        );

        self::exec($db, $sql);
    }