SQL Prepare Error

Error Number: HY000

MySQL server has gone away

select id_color from table_product_sale where id_parent = ?