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 ',(win_count+loss_count) total_count
,(SELECT name FROM pleague.p_team_history WH' at line 1 in /var/www/html/pleagueofficial.com/include/db_connect/MYSQLI.inc.php:21
Stack trace:
#0 /var/www/html/pleagueofficial.com/include/db_connect/MYSQLI.inc.php(21): mysqli_query(Object(mysqli), 'SELECT team_id,...')
#1 /var/www/html/pleagueofficial.com/include/_stat_team_boxscore.php(36): db_query(Object(mysqli), 'SELECT team_id,...')
#2 /var/www/html/pleagueofficial.com/stat-team.php(295): include('/var/www/html/p...')
#3 {main}
thrown in /var/www/html/pleagueofficial.com/include/db_connect/MYSQLI.inc.php on line 21