Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 in /home/dorltsyi/public_html/includes/courses.php:66 Stack trace: #0 /home/dorltsyi/public_html/includes/courses.php(66): PDO->query('select sum(vide...') #1 /home/dorltsyi/public_html/course.php(26): getCourseTotalDuration(NULL) #2 {main} thrown in /home/dorltsyi/public_html/includes/courses.php on line 66