Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{eNWO] coiolk~{osmwhow_igmhoooorwuwio_oumes.coouot{}okermng.com~muit...' at line 1
{eNWO] coiolk~{osmwhow_igmhoooorwuwio_oumes.coouot{}okermng.com~muito~}do.gnww{oomv- ccomyu}vmn_oumber, c.section_number, c.entry_id, c.status, c.late, c.rider_person_id, c.scratched, TRIM(CONCAT(r.first_name, ' ', r.last_name)) as rider_name, r.usef_number as rider_usef_number, r.ec_number as rider_ec_sln, r.fei_id as rider_fei_id,TRIM(CONCAT(r.city,', ', r.state)) as rider_home_town, h.id as horse_id, h.name as horse_name, h.usef_number as horse_usef_number, h.ec_number as horse_ec_number, h.fei_id as horse_fei_id, o.id as horse_owner_person_id, TRIM(CONCAT(o.first_name, ' ', o.last_name)) as horse_owner_name, t.id as trainer_person_id, TRIM(CONCAT(t.first_name, ' ', t.last_name)) as trainer_name, a.iso_3_country_code as athlete_nationality, (SELECT GROUP_CONCAT(cmh.url ORDER BY cmh.rider_start_time SEPARATOR , pos.competition_round, IF(rsp.start_position IS NOT NULL, rsp.start_position, pos.start_position) as start_position, pos.status, pos.competed, pos.withdrew, pos.jump_off FROM competition_entries c LEFT OUTER JOIN start_positions pos ON (c.horse_show_id = pos.horse_show_id AND c.competition_id = pos.competition_id AND c.entry_id = pos.entry_id) LEFT OUTER JOIN running_start_positions rsp ON (c.horse_show_id = rsp.horse_show_id AND c.competition_id = rsp.competition_id AND c.id = rsp.competition_entry_id) INNER JOIN competitions dc ON (c.competition_id = dc.id) INNER JOIN sections d ON (dc.section_id = d.id) INNER JOIN horse_shows hs ON (d.horse_show_id = hs.id) INNER JOIN horse_show_organizers co ON (hs.horse_show_organizer_id = co.id) INNER JOIN horse_show_entries hse ON (hse.id = c.entry_id) LEFT OUTER JOIN horses h ON (co.id = h.horse_show_organizer_id AND hse.horse_number = h.number) LEFT OUTER JOIN people r ON (co.id = r.horse_show_organizer_id AND c.rider_person_id = r.id) LEFT OUTER JOIN athlete_nationality a ON (hs.id = a.horse_show_id AND r.fei_id = a.athlete_fei_id) LEFT OUTER JOIN people o ON (co.id = o.horse_show_organizer_id AND hse.owner_person_id = o.id) LEFT OUTER JOIN people t ON (co.id = t.horse_show_organizer_id AND hse.trainer_person_id = t.id) WHERE c.competition_id = '565d45af-14c6-45cd-b131-10720fa3dfb6' AND (pos.status IS NULL OR pos.status != 'SC') ORDER BY start_position, c.entry_number
Filename: models/dao/Competition_with_start_order_model.php
Line Number: 26