Select m_shop.shopID, m_shop.shopName, m_shop.areaID, m_shop.email, m_shop.estimate_email, m_shop.url, m_shop.tel, m_shop.fax, m_shop.holiday, m_shop.openClose, m_shop.dc_flg, m_area.areaName, m_car.car_name As dc_name, m_shop.tc_flg, m_car1.car_name As tc_name, m_shop.zipcode, m_shop.address, m_shop.message, m_shop.gmap From m_shop Left Join m_area On m_shop.areaID = m_area.areaID Left Join m_car On m_shop.dc_flg = m_car.carID Left Join m_car m_car1 On m_shop.tc_flg = m_car1.carID WHERE tc_flg = 1;