Notice: Undefined offset: 0 in /var/www/html/objects/instructor.php on line 32

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'empty (sub)expression' from regexp' in /var/www/html/db.php:43 Stack trace: #0 /var/www/html/db.php(43): PDOStatement->execute() #1 /var/www/html/objects/expertise.php(23): db->select('SELECT DISTINCT...') #2 /var/www/html/objects/instructor.php(42): expertise->get_list(NULL) #3 /var/www/html/template/view/instructorDetails.html(2): instructor->__construct('148787360728') #4 /var/www/html/lib/limonade.php(1467): include('/var/www/html/t...') #5 [internal function]: render('view/instructor...', 'layout/base.htm...') #6 /var/www/html/lib/limonade.php(1507): call_user_func_array('render', Array) #7 /var/www/html/index.php(89): html('view/instructor...', 'layout/base.htm...') #8 [internal function]: instructorDetails('148787360728', 'dan-corneliuson') #9 /var/www/html/lib/limonade.php(429): call_user_func_array('instructorDetai...', Array) #10 /var/www/html/index.php(972): run() #11 {main} thrown in /var/www/html/db.php on line 43