A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND e.is_active=1 ORDER BY `e`.`e_id` DESC' at line 1

SELECT s.season_description,s.s_id,e.e_id,e.season_id,e.e_number,s.season_name,s.season_image,e.e_url,e.e_rating,e.e_name,e.e_hot,DATE_FORMAT(e.aired_on,'%d-%m-%Y') as aired,e.e_duration,e.e_description from show_season_map s left join show_episode_map e ON s.s_map_id = e.season_id where e.season_id = AND e.is_active=1 ORDER BY `e`.`e_id` DESC

Filename: models/home/Season_model.php

Line Number: 64