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,10044523,10044200,10044193,10043951,10043560,10043042,10040846,10040473,10039430,10038909,10038706,10036798,10036040,10033616,10033605,10031739,10031716,10031227,10031051,10031045,10031037,10031033,10031017,10030987,10030986) GROUP BY article.title ORDER BY ratio, adate DESC