Warning: Undefined variable $cp_sub in /usr/local/nginx/html/yscylm/template/1/left_dh.php on line 7

    Fatal error: Uncaught mysqli_sql_exception: 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 ') order by c_order asc , id asc' at line 1 in /usr/local/nginx/html/yscylm/system/library.php:7 Stack trace: #0 /usr/local/nginx/html/yscylm/system/library.php(7): mysqli_query() #1 /usr/local/nginx/html/yscylm/template/1/left_dh.php(8): sql_query() #2 /usr/local/nginx/html/yscylm/template/1/c_spage.php(31): include('...') #3 /usr/local/nginx/html/yscylm/detail.php(101): include('...') #4 {main} thrown in /usr/local/nginx/html/yscylm/system/library.php on line 7