A Database Error Occurred

Error Number: 2013

Lost connection to MySQL server during query

select distinct c.id from base_cmnt c where !ifnull(c.parent_id,0) and c.entity='mat' and c.entity_id=6402 order by c.id asc limit 0,10