Sorry if title is very ambiguous but here is the explanation:
I have 3 tables as follows:
Category
[ id (pk) | name | .... other fields ..... ]