SELECT know.*,rank.who,SUM(rank.vote) AS sumvotes FROM know LEFT JOIN rank ON(know.id = rank.who) GROUP BY rank.who ORDER BY rank.vote DESC LIMIT2