League Table

WordPress database error: [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 'OR `away_team` = ) AND DATEDIFF(NOW(), `date`) <= 0 ORDER BY `date` ASC' at line 1]
SELECT `group`, `home_team`, `away_team`, DATE_FORMAT(`date`, '%Y-%m-%d %H:%i') AS date, DATE_FORMAT(`date`, '%e') AS day, DATE_FORMAT(`date`, '%c') AS month, DATE_FORMAT(`date`, '%Y') AS year, DATE_FORMAT(`date`, '%H') AS `hour`, DATE_FORMAT(`date`, '%i') AS `minutes`, `match_day`, `location`, `league_id`, `home_points`, `away_points`, `winner_id`, `loser_id`, `post_id`, `season`, `id`, `custom` FROM wp_leaguemanager_matches WHERE ( `home_team` = OR `away_team` = ) AND DATEDIFF(NOW(), `date`) <= 0 ORDER BY `date` ASC

WordPress database error: [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 'OR `away_team` = ) AND DATEDIFF(NOW(), `date`) > 0 ORDER BY `date` DESC LIMIT 0' at line 1]
SELECT `group`, `home_team`, `away_team`, DATE_FORMAT(`date`, '%Y-%m-%d %H:%i') AS date, DATE_FORMAT(`date`, '%e') AS day, DATE_FORMAT(`date`, '%c') AS month, DATE_FORMAT(`date`, '%Y') AS year, DATE_FORMAT(`date`, '%H') AS `hour`, DATE_FORMAT(`date`, '%i') AS `minutes`, `match_day`, `location`, `league_id`, `home_points`, `away_points`, `winner_id`, `loser_id`, `post_id`, `season`, `id`, `custom` FROM wp_leaguemanager_matches WHERE ( `home_team` = OR `away_team` = ) AND DATEDIFF(NOW(), `date`) > 0 ORDER BY `date` DESC LIMIT 0,1

Rank
Matches
Won
Tied
Lost
Coach
Website

 

Matches

Match Score
11 July, 0000
Lundin Sports 1 – WANT 2
-:-
11 July, 2022
David Lloyd 2 – Montrose 3
-:-
11 July, 2022
Scone – Broughty Ferry 2
-:-
18 July, 2022
Montrose 3 – Lundin Sports 1
-:-
18 July, 2022
WANT 2 – Broughty Ferry 2
-:-
18 July, 2022
Scone – David Lloyd 2
-:-
25 July, 2022
Broughty Ferry 2 – David Lloyd 2
-:-
25 July, 2022
Montrose 3 – WANT 2
-:-
25 July, 2022
Lundin Sports 1 – Scone
-:-
1 August, 2022
David Lloyd 2 – Lundin Sports 1
-:-
1 August, 2022
Scone – WANT 2
-:-
1 August, 2022
Broughty Ferry 2 – Montrose 3
-:-
8 August, 2022
Broughty Ferry 2 – Lundin Sports 1
-:-
8 August, 2022
Montrose 3 – Scone
-:-
8 August, 2022
WANT 2 – David Lloyd 2
-:-