MySQL Error Occurred

Error Message:
2006: MySQL server has gone away

SQL:
SELECT max(I.price) as maximumPrice FROM sbt_comp_cats_idx AS C INNER JOIN sbt_comp_inventory AS I ON C.productId = I.productId WHERE I.disabled = '0' AND C.cat_id > 0 GROUP BY I.productId ORDER BY maximumPrice DESC