我有以下mysql查询:
SELECT merchantNames.strippedName,merchantNames.lastCached,merchantNames.id
FROM merchantNames
JOIN autoCoupons
ON merchantNames.rawName = autoCoupons.merchantName
WHERE NOW() > autoCoupons.startDate AND autoCoupons.startDate > merchantNames.lastCached
OR NOW() > autoCoupons.endDate AND autoCoupons.endDate > merchantNames.lastCached
OR NOW() > autoCoupons.timeAdded AND autoCoupons.timeAdded > merchantNames.lastCached
OR merchantNames.lastCached < NOW() - INTERVAL 2 DAY
GROUP BY merchantNames.strippedName
ORDER BY merchantNames.pageviews DESC
如何设置此查询以使满足 WHERE 子句条件前三行的结果位于顶部,而仅满足底线的结果位于底部的方式对结果进行排序?