Blob file download problem

There are some security issues.
Please sanitize your input because someone can download from Your database something different than archive, or simply drop Your database.

$fid = sanitize_text_field( $_GET['fid'] );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)