Added $_variables to MySQL Query
Custom NIA report fully inserted into database succes!