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 (5386,5387,5388,5389,5396,5397,5398,5399,5414,5419,5420,5432,5440,5441,5453,5454,5466,5467,5471,5473,5485,5486,5489,5504,5524,5568,5571,5583,5854,5855,6355,7288,9034,9045,9049,9673,13152,14504,19942,25131,27146,48899,68036,121444,132852,142123) group by c.id