Dear Kostas,

We put the code:
" WHERE m.matchday_id = ".$matchday." AND m.match_start_time < ".date("Y-m-d H:i:s");

But we receive the following error:
1064 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 '19:44:06' at line 1 SQL=SELECT m.match_start_time,th.name as home,ta.name as away,m.home_score,m.away_score,pp.home_prediction, pp.away_prediction,pp.points FROM `jos_masterleaguepro_match` m INNER JOIN `jos_masterleaguepro_teams` th ON th.id=m.home_team INNER JOIN `jos_masterleaguepro_teams` ta ON ta.id=m.away_team LEFT JOIN `jos_masterleaguepro_player_prediction` pp ON pp.match_id=m.id AND pp.user_id=473 WHERE m.matchday_id = 5 AND m.match_start_time < 2015-09-01 19:44:06

Please help.

Regards,

Dan G