I need your help. Here is an example:
Table A
id | colors
-------------------------
1 | green
2 | green, blue, red
3 | blue, red
Table B
id | colors | name
--------------------------
1 | green | Apple
2 | blue | Water
3 | red | Fire
4 | yellow | Sun
In PHP I try to select distinct the names of table B, if the color is exist in table A. How can I do that?