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,10123512,10117347,10058815,9991920,9971151,9904065,9897232,9851248,9824702,9820253,9738463,9738232,9714948,9708295,9688878,9673411,9672703,9670885,9601244,9590731,9588245,9588234,9588157,9586521,9580930) GROUP BY article.title ORDER BY ratio, adate DESC