WHERE clause problem
why doesn't the following IN clause work?
SELECT * FROM link WHERE category_id = '$cat' OR $cat IN (cat1) ORDER BY link_id ASC
where $cat= 4 and cat1 is 6, 11, 44 ( or whatever ). cat1 is a field in the link database ( i.e., cat1 is a column in the link table ) and is defined as a TEXT type.
it will return 6 but not 11 or 44.
"6", "11", "44" doesn't work at all.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.