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
Perth 1 – Scone 2
10 - 2
8 July, 2019
Forthill 1 – Arbroath 1
6 - 6
8 July, 2019
Montrose 1 – Kinnoull 1
7 - 5
8 July, 2019
Scone 1 – Broughty Ferry 1
11 - 1
15 July, 2019
Scone 2 – Arbroath 1
0 - 12
15 July, 2019
Montrose 1 – Perth 1
11 - 1
15 July, 2019
Forthill 1 – Scone 1
7 - 5
15 July, 2019
Kinnoull 1 – Broughty Ferry 1
10 - 2
22 July, 2019
Arbroath 1 – Montrose 1
-:-
22 July, 2019
Scone 2 – Scone 1
-:-
22 July, 2019
Perth 1 – Kinnoull 1
-:-
22 July, 2019
Broughty Ferry 1 – Forthill 1
-:-
29 July, 2019
Montrose 1 – Scone 1
-:-
29 July, 2019
Arbroath 1 – Kinnoull 1
-:-
29 July, 2019
Scone 2 – Forthill 1
-:-
29 July, 2019
Perth 1 – Broughty Ferry 1
-:-
5 August, 2019
Kinnoull 1 – Scone 1
-:-
5 August, 2019
Forthill 1 – Montrose 1
-:-
5 August, 2019
Arbroath 1 – Perth 1
-:-
5 August, 2019
Scone 2 – Broughty Ferry 1
-:-
12 August, 2019
Kinnoull 1 – Forthill 1
-:-
12 August, 2019
Scone 1 – Perth 1
-:-
12 August, 2019
Montrose 1 – Scone 2
-:-
12 August, 2019
Broughty Ferry 1 – Arbroath 1
-:-
19 August, 2019
Forthill 1 – Perth 1
-:-
19 August, 2019
Kinnoull 1 – Scone 2
-:-
19 August, 2019
Scone 1 – Arbroath 1
-:-
19 August, 2019
Broughty Ferry 1 – Montrose 1
-:-