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,10096347,10096242,10096179,10096181,10096182,10096176,10096068,10096052,10096045,10096035,10096014,10095992,10095907,10095846,10095246,10095066,10094938,10094625,10094504,10094443,10094361,10093777,10093774,10093729,10093702) GROUP BY article.title ORDER BY ratio, adate DESC