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-events.html AND `b`.is_show='1' AND `a`.is_show='1' AND `b`.`publis' at line 5

SELECT *,b.id as sid,`b`.`title` as `stitle`,`b`.`title_ct` as `stitle_ct`,`b`.`description` as `sdescription`,`b`.`description_ct` as `sdescription_ct`,`b`.`parent_id` as `sparent_id`,`a`.`title` as `cotitle`,`a`.`title_ct` as `cotitle_ct`,`a`.`description` as `codescription`,`a`.`description_ct` as `codescription_ct`, `a`.`fit` as `cofit`,`a`.`fit_ct` as `cofit_ct`,`a`.`id` as `coid` FROM `ci_product2` `a`,`ci_product_category2` `b` WHERE `a`.`parent_id`= `b`.`id` AND `b`.id=news-and-events.html AND `b`.is_show='1' AND `a`.is_show='1' AND `b`.`publish_at` <=now() AND (`b`.`offline_at` IS NULL OR `b`.`offline_at` >= now()) ORDER by `b`.`arrange`

Filename: /var/www/clients/client251/web583/web/controllers/courses.php

Line Number: 58