Checkbox checked values from many-to-many table

Maybe this will help: