1. 4730 products
2. 3983 size charts
Besides,some size charts assigned two or more products.
There is a solution for you:
Step1. Update the different format data in database to one same format.
Step2. I suggest that use comma “,” to separate ID instead of “[” or “]”
Step3. Optimize your code, DON’T use such many ‘LIKE’, PLEASE !!!