WordPress database error: [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 'and a.trip_id = and b.event_date between '' and '' and b.status = 1 ...' at line 13]
select distinct e.id,IFNULL(e.id,p.id) as rate_id,d.id as override_rate_id, d.price as rate_price,IFNULL(pd.rate_persons,1) as rate_persons,IF(e.name is NULL,2,1) as rate_type, b.event_date, c.name as trip_name,IFNULL(e.description,p.description) as description, IFNULL(e.name,p.name) as rate_name, f.event_trip_id, a.event_schedule_id, GROUP_CONCAT(g.name order by g.name) as car_name,GROUP_CONCAT(g.id) as rate_car_ids, f.car_id as car_id from wp_railres_event_trip_car_rates d left join wp_railres_event_trip_cars f on f.id = d.event_trip_car_id left join wp_railres_event_trips a on a.id = f.event_trip_id left join wp_railres_event_schedule b on a.event_schedule_id = b.id left join wp_railres_trips c on a.trip_id = c.id left join wp_railres_cars g on g.id = f.car_id left join wp_railres_age_categories as e on e.id = d.age_category_id left join wp_railres_promotions as p on p.id = d.promotion_id left join (select promotion_id,sum(nr_persons) as rate_persons from wp_railres_promotions_details group by promotion_id) pd on pd.promotion_id = p.id where b.event_id = and a.trip_id = and b.event_date between '' and '' and b.status = 1 and b.is_public = 1 and a.status = 1 and a.is_public = 1 and d.status = 1 and d.is_public = 1 and f.status = 1 and f.is_public = 1 group by e.id,p.id,d.price order by rate_name asc

WordPress database error: [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 'and edr.status = 1 and ag.status=1' at line 4]
select edr.*,ag.id as rate_id, ag.name as rate_name, ag.code, ag.description, edr.price as rate_price,1 as rate_persons,1 as rate_type from wp_railres_event_default_rates as edr left join wp_railres_age_categories as ag on ag.id = edr.age_category_id where edr.event_id = and edr.status = 1 and ag.status=1

WordPress database error: [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 'and f.status = 1' at line 5]
select d.*,f.id as rate_id, f.name as rate_name, d.price as rate_price, f.name as code, f.description,2 as rate_type,e.rate_persons from wp_railres_event_promotions d inner join wp_railres_promotions f on f.id = d.promotion_id inner join (select promotion_id,sum(nr_persons) as rate_persons from wp_railres_promotions_details group by promotion_id) e on e.promotion_id = f.id where d.event_id = and f.status = 1

WordPress database error: [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 ') bts on bts.segment_id = ss.segment_id WHERE b.id <> 0 and b.reser...' at line 11]
SELECT distinct bs.car_id, bs.full_seat_number,c.name as car_name FROM wp_railres_bookings b inner join wp_railres_trips_snapshot ts on b.trip_snapshot_id = ts.id inner join wp_railres_booking_segments bsg on b.id = bsg.booking_id inner join wp_railres_segments_snapshot ss on ss.id = bsg.segment_snapshot_id inner join wp_railres_booking_segments_seats bsgs on bsg.id = bsgs.booking_segment_id inner join wp_railres_booking_seats bs on bs.id = bsgs.booking_seat_id inner join wp_railres_cars c on bs.car_id = c.id inner join( select tss.segment_id from wp_railres_trips_segments tss where tss.trip_id = ) bts on bts.segment_id = ss.segment_id WHERE b.id <> 0 and b.reservation_status <> 2 and b.reservation_status <> 4 and b.event_schedule_id =

WordPress database error: [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 'and a.trip_id = and b.event_date between '' and '' and a.status = 1 a...' at line 14]
select b.event_date,d.capacity as car_capacity, c.name as trip_name, e.show_tables,e.disability_seats,e.empty_seats, e.id as car_id,e.name as car_name, e.description as car_description,e.show_tables, e.capacity as default_car_capacity, d.status as car_status, a.status as trip_status, a.is_public,b.status as schedule_status,a.created_on,a.updated_on, GROUP_CONCAT(pt.meta_value separator '#') as pictures,d.general_seating,e.disabled_seats from wp_railres_event_trip_cars d left join wp_railres_event_trips a on a.id = d.event_trip_id left join wp_railres_event_schedule b on a.event_schedule_id = b.id left join wp_railres_trips c on a.trip_id = c.id left join wp_railres_cars e on e.id = d.car_id left join wp_railres_pictures as pc on e.id = pc.item_id and pc.type=2 left join wp_postmeta pt on pc.picture_id = pt.post_id and pt.meta_key='_wp_attached_file' where b.event_id = and a.trip_id = and b.event_date between '' and '' and a.status = 1 and a.is_public = 1 and d.status = 1 and d.is_public = 1 group by e.id order by b.event_date asc

WordPress database error: [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 'and edt.status = 1 and edt.is_public = 1 group by cr.id' at line 9]
select edt.*,cr.name as car_name, cr.description as car_description, cr.show_tables,edt.capacity as car_capacity, cr.disability_seats,cr.empty_seats,cr.general_seating,cr.disabled_seats, GROUP_CONCAT(pt.meta_value separator '#') as pictures from wp_railres_event_default_cars as edt left join wp_railres_cars as cr on cr.id = edt.car_id left join wp_railres_pictures as pc on cr.id = pc.item_id and pc.type=2 left join wp_postmeta pt on pc.picture_id = pt.post_id and pt.meta_key='_wp_attached_file' where edt.event_id = and edt.status = 1 and edt.is_public = 1 group by cr.id

You must use the navigation bar below to move back to the previous screen