MySQL server has gone away SQL query : SELECT povt.productID,pot.optionID,pot.name,povt.option_value,povt.option_type,povt.option_show_times, povt.variantID, povt.optionID FROM SS_product_options_values as povt LEFT JOIN SS_product_options as pot ON pot.optionID=povt.optionID WHERE povt.productID IN ('8245') ORDER BY pot.sort_order, pot.name