EDIT: Changed the question to be more clear.
EDIT 2: The intention here to create an "add to list" and "remove from list" when outputting a catalog (I don't want a user to be able to add an item more than once)
First of all, I'm not sure if this should be done in Coldfusion or MySQL.
I have a query of items that retrieves items in a catalog. I have a second query that retrieves items from a user's list. My objective is to find out if an item is already present in a user's list when outputting the first query (the items catalog).
items(itemId, itemName)
users_items(itemId,memberId)