2006 : MySQL server has gone away SELECT distinct address_area, address_area_lat FROM sochi_komnaty_prodaja where address_area <> '' Error in sql