我一直在搜索一段时间,但无法解决此查询的问题,
SELECT articles.id AS aid, articles.author AS aauth FROM articles WHERE find_in_set(articles.category, '1,2,3') AND DATE_FORMAT(FROM_UNIXTIME(articles.date), '%Y-%m-%d') = '2015-06-10' ORDER BY articles.id DESC LIMIT 1
查询返回空,问题是日期条件,因为它没有它。