我有以下 SQL 查询来检索产品:
$query = "SELECT *,m.m_name,m.m_website FROM belvg_countdown c
INNER JOIN catalog_product_entity e ON e.entity_id=c.entity_id
LEFT JOIN manufacturers_products mp ON c.entity_id=mp.product_id
LEFT JOIN manufacturers m ON mp.manufacturers_id=m.manufacturers_id
WHERE DATE_FORMAT(expire_datetime_off , '%Y-%m-%d') > DATE_FORMAT(NOW() , '%Y-%m-%d')
AND DATE_FORMAT(expire_datetime_on , '%Y-%m-%d')!=DATE_FORMAT(NOW() , '%Y-%m-%d')
AND entity_type='product'";
现在,我还要添加一条语句,以仅加载名为“精选”类别的产品。你能帮我理解我应该比较/查询什么才能只获得“特色”产品吗?
谢谢。