A Database Error Occurred

Error Number: 2013

Lost connection to MySQL server during query

select c.*, count(distinct c3.id) answers_qty, u.login u_login, u.name u_name, u.alias u_alias, u.ccode u_ccode, 1 is_rated, sum(ifnull(cv.weight,0)) rating from base_cmnt c left join base_user u on u.id=c.user_id left join base_cmnt c3 on c3.parent_id=c.id left join base_cmnt_vote cv on cv.cmnt_id=c.id where c.root_cmnt_id in (22677,22717,22790,22899,22900,22911,22916,22923,22962,23005,23021,23039,23099,23109,23110,23133,23150,23160,23163,23171,23173,23182,23197,23219,23259,23267,23270,23274,23286,23291,23295,23308,23314,23318,23321,23325,23328,23333,23342,23362,23367,23370,23374,23377,23416,23449,23471,23549,23556,23559,23591,23594,23778,23844,24029,24034,24344) group by c.id