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
8 July, 2019
Kinnoull 2 – WANT 2
9 - 3
8 July, 2019
Kinross – Lundin Sports 1
6 - 6
8 July, 2019
Arbroath 2 – Perth 2
10 - 2
8 July, 2019
West End 1 – Montrose 3
9 - 3
15 July, 2019
WANT 2 – Lundin Sports 1
4 - 8
15 July, 2019
Arbroath 2 – Kinnoull 2
9 - 3
15 July, 2019
Kinross – West End 1
-:-
15 July, 2019
Perth 2 – Montrose 3
7 - 5
22 July, 2019
Lundin Sports 1 – Arbroath 2
-:-
22 July, 2019
WANT 2 – West End 1
-:-
22 July, 2019
Kinnoull 2 – Perth 2
-:-
22 July, 2019
Montrose 3 – Kinross
-:-
29 July, 2019
West End 1 – Arbroath 2
-:-
29 July, 2019
Lundin Sports 1 – Perth 2
-:-
29 July, 2019
WANT 2 – Kinross
-:-
29 July, 2019
Kinnoull 2 – Montrose 3
-:-
5 August, 2019
Perth 2 – West End 1
-:-
5 August, 2019
Kinross – Arbroath 2
-:-
5 August, 2019
Lundin Sports 1 – Kinnoull 2
-:-
5 August, 2019
Montrose 3 – Lundin Sports 1
-:-
12 August, 2019
Perth 2 – Kinross
-:-
12 August, 2019
West End 1 – Kinnoull 2
-:-
12 August, 2019
Arbroath 2 – WANT 2
-:-
12 August, 2019
Montrose 3 – Lundin Sports 1
-:-
19 August, 2019
Kinross – Kinnoull 2
-:-
19 August, 2019
Perth 2 – WANT 2
-:-
19 August, 2019
West End 1 – Lundin Sports 1
-:-
19 August, 2019
Montrose 3 – Arbroath 2
-:-