Searching Delimited Fields in MySQL
I'm trying to categorize some restaurants in a table. Some of the restaurants may fall into more than one category so I can't just set a category for each restaurant and pull them distinctly from that table. So I'm going to create a separate table for the categories and assign each an ID.
Then for each restaurant listing I may have something like (1,4,7 representing the cats):
Restaurant|cats|Address|CityState|etc|etc
McDonalds|1,4,7|123 Pine St.|Mobile, AL|etc|etc
Let's say 4 represents "Fast Food", so how would I, when I pull the Fast Food category ID of 4, search the 'cats' field in the restaurants table and pull each one with 4 in the cats field?
Or is there a better way of doing this?