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 (3750,3754,3755,3756,3757,3758,3761,3762,3764,3766,3767,3769,3770,3771,3773,3774,3777,3778,3784,3796,3797,3800,3805,3806,3809,3814,3816,3827,3861,3903,3913,3949,3953,3958,3962,3963,4176,4312) group by c.id