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,6934823,6934795,6836086,6742958,6323018,6309968,6285862,6178315,6167850,5673158,5668892,5668883,5668869,5667632,5571297,5510312,5507212,5251702,5143917,4883383,4838772,4838343,4838330,4838276,4838184) GROUP BY article.title ORDER BY ratio, adate DESC