Here is the query I have
SELECT FB_TEXT
FROM `FB_DATA`
WHERE `FB_MODELID` = "'.$sku_modelid.'" AND FB_TYPEID = 1
What I want to do is allow multiple FB_TYPEID’s so the query should be like:
AND FB_TYPEID = 1,2,7
1, 2, and 7 are the numbers I need allowed. How can I write that without making a long query saying:
SELECT FB_TEXT
FROM `FB_DATA`
WHERE `FB_MODELID` = "'.$sku_modelid.'" AND FB_TYPEID = 1 OR `FB_MODELID` = "'.$sku_modelid.'" AND FB_TYPEID = 2 OR `FB_MODELID` = "'.$sku_modelid.'" AND FB_TYPEID = 7
Use
INinstead of=: