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
Broughty Ferry 3 – West End 2
4 - 8
8 July, 2019
David Lloyd 2 – Falkland 2
2 - 10
8 July, 2019
St Andrews 2 – Broughty Ferry 2
11 - 1
8 July, 2019
Forthill 2 – Duffus
11 - 1
15 July, 2019
West End 2 – Falkland 2
6 - 6
15 July, 2019
St Andrews 2 – Broughty Ferry 3
12 - 0
15 July, 2019
Duffus – David Lloyd 2
9 - 3
15 July, 2019
Broughty Ferry 2 – Forthill 2
8 - 4
22 July, 2019
Falkland 2 – St Andrews 2
9 - 3
22 July, 2019
West End 2 – Duffus
3 - 9
22 July, 2019
Broughty Ferry 3 – Broughty Ferry 2
4 - 8
22 July, 2019
Forthill 2 – David Lloyd 2
12 - 0
29 July, 2019
Duffus – St Andrews 2
6 - 6
29 July, 2019
Falkland 2 – Broughty Ferry 2
4 - 8
29 July, 2019
David Lloyd 2 – West End 2
7 - 5
29 July, 2019
Broughty Ferry 3 – Forthill 2
1 - 11
5 August, 2019
Broughty Ferry 2 – Duffus
9 - 3
5 August, 2019
David Lloyd 2 – St Andrews 2
10 - 2
5 August, 2019
Falkland 2 – Broughty Ferry 3
10 - 2
5 August, 2019
West End 2 – Forthill 2
0 - 12
12 August, 2019
Broughty Ferry 2 – David Lloyd 2
3 - 9
12 August, 2019
Duffus – Broughty Ferry 3
1 - -1
12 August, 2019
St Andrews 2 – West End 2
4 - 8
12 August, 2019
Forthill 2 – Falkland 2
7 - 5
19 August, 2019
David Lloyd 2 – Broughty Ferry 3
11 - 1
19 August, 2019
Duffus – Falkland 2
9 - 3
19 August, 2019
St Andrews 2 – Forthill 2
1 - 11
19 August, 2019
Broughty Ferry 2 – West End 2
9 - 3