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
David Lloyd 1 – Tayport
11 - 1
8 July, 2019
Blairgowrie – Montrose 2
11 - 1
8 July, 2019
Falkland 1 – St Andrews 1
9 - 3
8 July, 2019
WANT 1 – Anstruther
5 - 7
15 July, 2019
St Andrews 1 – Anstruther
-:-
15 July, 2019
Blairgowrie – WANT 1
-:-
15 July, 2019
Falkland 1 – David Lloyd 1
-:-
15 July, 2019
Tayport – Montrose 2
7 - 5
22 July, 2019
Montrose 2 – Falkland 1
-:-
22 July, 2019
Tayport – WANT 1
-:-
22 July, 2019
David Lloyd 1 – St Andrews 1
-:-
22 July, 2019
Anstruther – Blairgowrie
-:-
29 July, 2019
WANT 1 – Falkland 1
-:-
29 July, 2019
Montrose 2 – St Andrews 1
-:-
29 July, 2019
Tayport – Blairgowrie
-:-
29 July, 2019
David Lloyd 1 – Anstruther
-:-
5 August, 2019
St Andrews 1 – WANT 1
-:-
5 August, 2019
Blairgowrie – Falkland 1
-:-
5 August, 2019
Montrose 2 – David Lloyd 1
-:-
5 August, 2019
Tayport – Anstruther
-:-
12 August, 2019
St Andrews 1 – Blairgowrie
-:-
12 August, 2019
WANT 1 – David Lloyd 1
-:-
12 August, 2019
Falkland 1 – Tayport
-:-
12 August, 2019
Anstruther – Montrose 2
-:-
19 August, 2019
Blairgowrie – David Lloyd 1
-:-
19 August, 2019
St Andrews 1 – Tayport
-:-
19 August, 2019
WANT 1 – Montrose 2
-:-
19 August, 2019
Anstruther – Falkland 1
-:-