Error with SQL:
  select
    m.make,
    m.make_id as make_id_db
  from car_makes m
    where exists (select 1 from car_ads a where a.make_id = m.make_id and expiry_date > sysdate() and dealer_id = 1053)
  order by make
No database selected