MySQL server has gone away
SELECT d.*, dt.name, dt.friendly_url, at.name as area, DATE_FORMAT(d.start_date,'%d.%m.%Y') as start_date_str, UNIX_TIMESTAMP(d.start_date) as start_date_stamp, DATE_FORMAT(d.end_date,'%d.%m.%Y') as end_date_str, UNIX_TIMESTAMP(d.end_date) as end_date_stamp, sta.name as state, st.name as size, o.name as organizer, pst.name as protocols_state, cot.name as country, cgt.name as competition_group, tt.name as type, dgt.name as global_competition, CONCAT(iu.first_name,' ',iu.last_name) as insert_user FROM spo_sp_competition d LEFT JOIN spo_sp_competition_text dt ON d.competition_id = dt.competition_id AND dt.lang_id=1 LEFT JOIN spo_sp_area_text at ON d.area_id = at.area_id AND at.lang_id=1 LEFT JOIN spo_sp_competition_state_text sta ON d.state_id = sta.state_id AND sta.lang_id=1 LEFT JOIN spo_sp_competition_size_text st ON d.size_id = st.size_id AND st.lang_id=1 LEFT JOIN spo_sp_organizer o ON d.organizer_id = o.organizer_id LEFT JOIN spo_sp_competition_protocols_state_text pst ON d.protocols_state_id = pst.protocols_state_id AND pst.lang_id=1 LEFT JOIN spo_country_text cot ON d.country_id = cot.country_id AND cot.lang_id=1 LEFT JOIN spo_sp_competition_group_text cgt ON d.competition_group_id = cgt.competition_group_id AND cgt.lang_id=1 LEFT JOIN spo_sp_competition_type_text tt ON d.type_id = tt.type_id AND tt.lang_id=1 LEFT JOIN spo_sp_competition_text dgt ON d.global_competition_id = dgt.competition_id AND dgt.lang_id=1 LEFT JOIN spo_user iu ON d.insert_user_id = iu.user_id WHERE d.competition_id=2004

filelineclass + method
/home/virtual/www.sportfoto.com/public_html/index.php405Application->Application($0,$1,$2,$3)
    /home/virtual/www.sportfoto.com/public_html/code/kernel/Application.class.php548Application->getContent()
        /home/virtual/www.sportfoto.com/public_html/code/kernel/Application.class.php711SP_Picture->intro($0)
            /home/virtual/www.sportfoto.com/public_html/code_bw/sportfoto/sportfoto/SP_Picture.class.php2673SP_Picture->control()
                /home/virtual/www.sportfoto.com/public_html/code_bw/sportfoto/sportfoto/SP_Picture.class.php3120SP_Picture->viewGallery($0)
                    /home/virtual/www.sportfoto.com/public_html/code_bw/sportfoto/sportfoto/SP_Picture.class.php4971SP_Competition->getData($0)
                        /home/virtual/www.sportfoto.com/public_html/code_bw/sportfoto/sportfoto/SP_Competition.class.php2204DB->selectRec($0)
                            /home/virtual/www.sportfoto.com/public_html/common/DB.class.php340DB->query($0)
                                /home/virtual/www.sportfoto.com/public_html/common/DB.class.php196trigger_error($0,$1)
                                    user_error_handler($0,$1,$2,$3,$4)
                                        /home/virtual/www.sportfoto.com/public_html/common/functions.inc.php2658getBacktrace()