I don't know, you're probably right. I probably have redundant data in my database. Let me give you some more background info so you can see what's going on.
I'm working on a directory which of course has categories and subcategories. These are stored in a table not called category_list (ok it's called category_list)...
It contains these fields:
catID section category subcat1 subcat2... subcat5 page_name
There are 3 sections and each section has different categories and each category has different subcategories. So when I delete a subcategory (along with the subdirectory folder for that subcategory) I have to first know what subcategory I'm deleting. So I put it into a variable:
$desiredsubcat=(name of subcat to delete);
$selectsubcattodelete=mysql_query("SELECT (which subcat?) FROM category_list WHERE (which subcat?)='$desiredsubcat'");
$desiredsubcat could be subcat1, subcat2, subcat3... so hence my problem.