Warning: Undefined array key "user_id" in /www/wwwroot/auth.lhwks.cn/modules/user/buy_app.php on line 4

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 'AND (up.expire_date IS NULL OR up.expire_date >= CURDATE()) ORDER BY' at line 5 in /www/wwwroot/auth.lhwks.cn/includes/Database.php:29 Stack trace: #0 /www/wwwroot/auth.lhwks.cn/includes/Database.php(29): mysqli->query() #1 /www/wwwroot/auth.lhwks.cn/includes/Database.php(45): Database->query() #2 /www/wwwroot/auth.lhwks.cn/includes/functions.php(117): Database->fetchOne() #3 /www/wwwroot/auth.lhwks.cn/includes/functions.php(129): getUserCurrentGroup() #4 /www/wwwroot/auth.lhwks.cn/modules/user/buy_app.php(222): getDiscountedPrice() #5 /www/wwwroot/auth.lhwks.cn/admin.php(238): include('...') #6 {main} thrown in /www/wwwroot/auth.lhwks.cn/includes/Database.php on line 29