A Database Error Occurred

Error Number: 1054

Unbekanntes Tabellenfeld 'direct' in where clause

SELECT * FROM (`articles_view`) LEFT JOIN `article_district` ON id = article_district.article_id LEFT JOIN `article_quarter` ON id = article_quarter.article_id WHERE (article_district.district_id = direct OR article_district.district_id IS NULL) AND ( article_quarter.quarter_id = 11 OR ( article_quarter.quarter_id IS NULL AND article_district.district_id IS NULL ) ) AND `section_id` = '2' AND `static` = 0 LIMIT 30