Lost connection to MySQL server during query

in query:
select count(categoryID) from SKH_categories where parent=198