A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2973

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2974

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2975

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2976

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2977

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/site.php

Line Number: 2978

Database Error

An Error Was Encountered

Error Number: 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 'AND alp_asc_parties.level = 6 AND alp_act_ascents.incomplete =' at line 11

SELECT alp_competitions.id AS cid, alp_act_ascents.id AS asc_id, alp_competitions.ch_name, alp_competitions.place, alp_competitions.ch_date0 AS d0, alp_competitions.ch_date1 AS d1, alp_discipline.name AS discipline, alp_asc_parties.chief AS chief, alp_hardship.name AS hard, alp_act_ascents.odate, alp_champ_range.name AS rang, alp_routes.toponym, alp_routes.track, alp_act_ascents.pioneer, alp_act_ascents.frost, alp_act_ascents.couple, alp_route_style.style FROM alp_asc_parties INNER JOIN alp_act_ascents ON alp_asc_parties.host_element_id = alp_act_ascents.id INNER JOIN alp_routes ON alp_act_ascents.route = alp_routes.id INNER JOIN alp_route_style ON alp_routes.style = alp_route_style.id INNER JOIN alp_competitions ON alp_act_ascents.champ_id = alp_competitions.id INNER JOIN alp_champ_range ON alp_competitions.ch_range = alp_champ_range.id INNER JOIN alp_discipline ON alp_competitions.discipline = alp_discipline.id INNER JOIN alp_hardship ON alp_routes.hardship = alp_hardship.id WHERE alp_asc_parties.party = AND alp_asc_parties.level = 6 AND alp_act_ascents.incomplete = false ORDER BY alp_competitions.id;