Casting the sharing_group_id to int value 
Casting the sharing_group_id to int value 

Saving the sharing_group_id as it is returned by CaptureSG results in Error: [PDOException] SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'sharing_group_id' at row 1. Wrapping it in intval will insert the correct int value.
MISP/MISP,FloatingGhost/MISP,TheDr1ver/MISP,devnull-/MISP,devnull-/MISP,cristianbell/MISP,SteveClement/MISP,RichieB2B/MISP,TheDr1ver/MISP,crruthe/MISP,cristianbell/MISP,RichieB2B/MISP,RichieB2B/MISP,cristianbell/MISP,Rafiot/MISP,FIRSTdotorg/MISP,SteveClement/MISP,FloatingGhost/MISP,SteveClement/MISP,devnull-/MISP,FloatingGhost/MISP,MISP/MISP,devnull-/MISP,MISP/MISP,crruthe/MISP,SteveClement/MISP,TheDr1ver/MISP,TheDr1ver/MISP,SteveClement/MISP,FIRSTdotorg/MISP,cristianbell/MISP,MISP/MISP,FIRSTdotorg/MISP,MISP/MISP,crruthe/MISP,RichieB2B/MISP,FloatingGhost/MISP,FIRSTdotorg/MISP,Rafiot/MISP,Rafiot/MISP,Rafiot/MISP,crruthe/MISP