Mysql error:

Unknown column 'type' in 'where clause'
SQL:
SELECT * FROM calendar WHERE type = '2' AND lan = 'fr' AND online_from <= NOW() AND online_to >= NOW() ORDER BY sort_date ASC