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 \'AND published=1 AND alt_decision=0
\n AND t1.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t1.id=
\n ORDER BY (matchpart1_result-matchpart2_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t1.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t1.id=
\n ORDER BY (matchpart1_result-matchpart2_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t1.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t1.id=
\n ORDER BY (matchpart2_result-matchpart1_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t1.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t1.id=
\n ORDER BY (matchpart2_result-matchpart1_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t2.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t2.id=
\n ORDER BY (matchpart1_result-matchpart2_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t2.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t2.id=
\n ORDER BY (matchpart1_result-matchpart2_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t2.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t2.id=
\n ORDER BY (matchpart2_result-matchpart1_result) DESC
\n LIMIT 0,1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND published=1 AND alt_decision=0
\n AND t2.id=
\n \' at line 9 SQL=SELECT t1.name AS hometeam, t2.name AS awayteam,
\n matchpart1_result AS homegoals,
\n matchpart2_result AS awaygoals
\n FROM jos_joomleague_matches as matches
\n LEFT JOIN jos_joomleague_teams t1
\n ON t1.id = matches.matchpart1
\n LEFT JOIN jos_joomleague_teams t2
\n ON t2.id = matches.matchpart2
\n WHERE project_id = AND published=1 AND alt_decision=0
\n AND t2.id=
\n ORDER BY (matchpart2_result-matchpart1_result) DESC
\n LIMIT 0,1