fix broken function current_league($season) sql select

This commit is contained in:
2018-02-19 22:56:00 +01:00
parent 511a23d609
commit 3b47093a3a

View File

@@ -1063,7 +1063,7 @@ function current_league($season)
FROM ' . FOOTB_MATCHES . ' AS m
INNER JOIN ' . FOOTB_BETS . ' AS b ON (b.season = m.season AND b.league = m.league ' . $user_spec . ")
WHERE m.season = $season
AND league < 51
AND m.league < 51
AND m.status in (0,1,2)
ORDER BY m.match_datetime ASC
LIMIT 1";