I have following code but i have a problem.
$query = "SELECT p.*,(TO_DAYS(p.start_date) - TO_DAYS(NOW())) AS daydiff FROM #__jblance_project p ".
"WHERE p.status=".$db->quote('COM_JBLANCE_OPEN')." AND p.approved=1 AND '$now' > p.start_date AND p.id_category=202 ".
"ORDER BY p.is_featured DESC, p.id DESC ".
the problem is when the field id_category has more than just one value like
202,203,204
it is not showing any result althout i have changes the code to
AND p.id_category=202 OR .id_category=203 OR .id_category=204
as the cell contains all values separated by comma
any advice.
Thanks D.