Am arbeiten...
invalid query: Unknown column 'b_br.Q' in 'where clause'SELECT MAX(score) AS score_max, MIN(score) AS score_min, MAX(Hscore) AS Hscore_max, MIN(Hscore) AS Hscore_min, MAX(Tscore) AS Tscore_max, MIN(Tscore) AS Tscore_min, MAX(Kscore) AS Kscore_max, MIN(Kscore) AS Kscore_min, MAX(Mscore) AS Mscore_max, MIN(Mscore) AS Mscore_min, MAX(Iscore) AS Iscore_max, MIN(Iscore) AS Iscore_min, MAX(Rscore) AS Rscore_max, MIN(Rscore) AS Rscore_min, MAX(Hscore+Mscore) / 2 AS HMscore_max, MIN(Hscore+Mscore) / 2 AS HMscore_min, MAX(Tscore+Kscore) / 2 AS TKscore_max, MIN(Tscore+Kscore) / 2 AS TKscore_min, MAX(Iscore+Rscore) / 2 AS IRscore_max, MIN(Iscore+Rscore) / 2 AS IRscore_min FROM blogs, blog_rankings AS b_br, categories, countries, groups WHERE blogs.id = b_br.blog_id AND b_br.timestamp = CURDATE() AND b_br.Q = '1' AND blogs.category_id = categories.id AND blogs.country_id = countries.id AND blogs.group_id = groups.id AND ((blogs.crawl_status = '' OR blogs.crawl_status != 'old' OR blogs.crawl_status = 'old') OR blogs.id = 5207) AND (blogs.category_id IN (38) OR blogs.category_id2 IN (38) OR blogs.id = 5207) AND (blogs.country_id IN (1) OR blogs.country_id IN (0) OR blogs.id = 5207) AND blogs.crawl_status = ''