MySQL server has gone away SQL query : select po.optionID, po.name, pv.sort_order_tip from SS_product_options po LEFT JOIN SS_product_options_values AS pv ON po.optionID=pv.optionID and pv.productID='60467' order by pv.sort_order_tip, po.name