我有一个看起来像这样的 mysql 查询
select
s.id, sum(history.virality)
from
spreads s , (
select
( ( (sum(t.likes)) + ( sum(t.comments)) ) * ( 1 / ( 1 + s.created_at / 3600000 ) ) )as response
from
spreadstimeline t
where
t.spread_id = s.id
group by
DATE_FORMAT(t.created_at,'%Y-%m-%d %H')
) as history
group by
s.id
Mysql返回错误“'字段列表'中的未知列's.created_at'”
有没有办法让 s 出现在子查询中,或者我应该开始考虑不同的查询。