我的mysql查询是
SELECT
testid,
testName,
DATE(testviewaudit.datetime) ,
SUM(action=1) AS view,
SUM(action=2) AS start,
SUM(action=3) AS finish
FROM testviewaudit
INNER JOIN tmtests
ON estviewaudit.testid = tmtests.tsid
WHERE DATE(testviewaudit.datetime) >= '2016-03-12'
AND DATE(testviewaudit.datetime) <= '2016-03-15'
GROUP BY testid;
使用上面的查询我收到1064错误
答案 0 :(得分:0)
您只需在查询之间使用
$thumb_id = get_post_thumbnail_id($single->ID);
$thumb_url = get_guid($thumb_id);
&#13;