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 `status`=1 ORDER BY `sort_id` ASC' at line 1
SELECT `id`, `class_id`, `class_name`, `class_desc`, `font_color`, `sort_id`, `status` FROM activities_class WHERE `class_id`= AND `status`=1 ORDER BY `sort_id` ASC