SELECT *
FROM jos_joomleague
WHERE id = '12'
SELECT pp.id
FROM jos_joomleague_predictiongame_project AS pp
LEFT JOIN jos_joomleague_predictiongame AS p
ON p.id = pp.prediction_id
WHERE pp.project_id = 12
AND p.published = 1
SELECT params
FROM jos_joomleague_template_config
WHERE template = 'overall.tpl'
AND project_id = 12
SELECT params
FROM jos_joomleague_template_config
WHERE template = 'show_plan.tpl'
AND project_id = 12
SELECT DISTINCT matchcode, id, name, round_date_first, round_date_last
FROM jos_joomleague_rounds
WHERE project_id = 12
ORDER BY matchcode ASC
SELECT tl.id AS teamtoolid, tl.division_id, tl.standard_playground, tl.admin, tl.start_points, tl.info, tl.team_id, tl.checked_out, tl.checked_out_time, tl.picture, tl.project_id,
t.id, t.name, t.short_name, t.middle_name, t.description, t.club_id,
u.username, u.email,
c.email AS club_email, c.logo_small, c.country, c.website,
d.name AS division_name, d.shortname AS division_shortname, d.parent_id AS parent_division_id,
plg.name AS playground_name, plg.short_name AS playground_short_name
FROM jos_joomleague_team_joomleague tl
LEFT JOIN jos_joomleague_teams t
ON tl.team_id = t.id
LEFT JOIN jos_users u
ON tl.admin = u.id
LEFT JOIN jos_joomleague_clubs c
ON t.club_id = c.id
LEFT JOIN jos_joomleague_divisions d
ON d.id = tl.division_id
LEFT JOIN jos_joomleague_playgrounds plg
ON plg.id = tl.standard_playground
WHERE tl.project_id = 12
ORDER BY t.name
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 1
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '72'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 2
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '73'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 3
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '74'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 4
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '75'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 5
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '76'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 6
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '83'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 7
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '84'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 8
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '85'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 9
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '86'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 10
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '87'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 11
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '88'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 12
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '89'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 13
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '90'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 14
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '91'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 15
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '92'
SELECT matches.*, r.matchcode AS roundcode, r.name AS roundname , playground.name AS playground_name, playground.short_name AS playground_short_name, ref.name AS referee_name
FROM jos_joomleague_matches AS matches
INNER JOIN jos_joomleague_rounds AS r
ON matches.round_id = r.id
LEFT JOIN jos_joomleague_playgrounds AS playground
ON playground.id = matches.playground_id
LEFT JOIN jos_joomleague_teams AS ref
ON ref.id = matches.referee_id
WHERE matches.project_id = 12
AND r.matchcode = 16
AND matches.published = 1
GROUP BY matches.match_id
ORDER BY r.matchcode ASC, matches.match_date ASC, matches.match_number
SELECT *
FROM jos_joomleague_rounds
WHERE id = '93'