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 (177342,177357,177367,177383,177440,177518,177592,177659,177690,177731,177732,177750,177756,177761,177813,177839,177920,177922,177932,178027,178048,178049,178066,178085,178090,178131,178153,178159,178211,178220,178221,178227,178314,178355,178436,178441,178444,178506,178526,178545,178571,178580,178583,178621,178625,178647,178678,178682,178683,178736,178786,178813,178842,178849,178850,178860,178952,179232,179311,179326,179340,179389) group by c.id