Ett oväntat fel inträffade: Unknown column 'ratio' in 'order clause'
SQL: /* soek ny */ SELECT /* index */ paper.url as purl, paper.id as pid, paper.shortname as pname, article.date as adate, article.link as alink, article.id as aid, article.title as atitle, article.description as adesc, paper.show_description as show_desc, article.date_unixtime AS date_unixtime, SUM(vote.weight) AS votes, COUNT(article.id) as artiklar_antal FROM article LEFT JOIN paper ON(paper.id = article.paperid) LEFT JOIN vote ON (vote.article = article.id) WHERE article.id IN (0,10126827,10106063,10105084,10105095,10104967,10104963,10104525,10104517,10104472,10104455,10104376,10104345,10104292,10104284,10104286,10104276,10104211,10104116,10103960,10103780,10103701,10103694,10103690,10103691,10103681) GROUP BY article.title ORDER BY ratio, adate DESC