Exception

Database Exceptionyii\db\Exception

SQLSTATE[42000]: Syntax error or access violation: 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 p.start_date >= DATE_ADD(NOW(), INTERVAL -1 DAY) order by abs(datedif' at line 1
The SQL being executed was: SELECT distinct p.topic_id,p.start_date, t.topic_category_id, p.venue, (indsty.name) as industry_name, tcat.industry_id, t.subcategory, (tcat.name) as subcategory_name, t.name, t.speaker_id, p.is_published, t.is_published, (spkr.id) as spkr_id, (spkr.speaker_name) as spkr_name, (spkr.phone_no) as spkr_phone_no, (spkr.image) as spkr_image, (spkr.profile) as spkr_profile, (spkr.brief_description) as spkr_brief_description FROM programs as p LEFT JOIN topics as t ON t.id = p.topic_id LEFT JOIN topic_categories as tcat ON tcat.id = t.subcategory and tcat.site_id='2' and tcat.is_published='1' LEFT JOIN industry as indsty ON indsty.id = tcat.industry_id LEFT JOIN speaker_profile as spkr ON spkr.id = t.speaker_id where p.is_published ='1' and t.is_published ='1' and t.site_id ='2' and indsty.id IN ( '4' ) and tcat.id IN () and p.start_date >= DATE_ADD(NOW(), INTERVAL -1 DAY) order by abs(datediff(p.start_date,now())) asc

Error Info: Array
(
    [0] => 42000
    [1] => 1064
    [2] => 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  p.start_date >=  DATE_ADD(NOW(), INTERVAL -1 DAY)  order by abs(datedif' at line 1
)
$_GET = [
    'findindustry' => '4',
    'fcourse' => 'all',
    'fsub' => 'Healthcare-%7C-Clinical-%7C-Laboratory',
];

$_SESSION = [
    '__flash' => [],
    'countrycode' => 'US',
    'continentcode' => 'North America',
    'contryid' => 1,
    'continentid' => 1,
    'currency' => 'USD',
    'citycode' => 'NY',
    'cityid' => 0,
];