SELECT * FROM article WHERE `module_id`='259328' AND (active='yes' OR (active_from <= NOW() AND active_to >= NOW()))Unknown column 'module_id' in 'where clause'