2006 : MySQL server has gone away SELECT AVG(price) from stavropol_komnaty_arenda WHERE price <> 0 and rent_type = 1Error in sql