Fixing: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'vid' cannot be null: INSERT INTO {videopile_video_views} (`vid`, `uid`, `date`) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => 2013-09-09 14:32:17 ) in active_record->save() (line 251 of /var/app/current/sites/all/modules/active_record/lib/active_record.php).