Notice: Trying to get property 'term_id' of non-object in /nas/content/live/adms2500/wp-content/themes/webtutors/single-course.php on line 21

WordPress database error: [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 '' at line 1]
SELECT COUNT(object_id) FROM `wp_term_relationships` WHERE `term_taxonomy_id` = /* From [www.adms2500.com/course/practice-past-midterms/] in [/nas/content/live/adms2500/wp-content/themes/webtutors/single-course.php:21] */