MySQL server has gone away SQL query : SELECT p.name, o.option_value FROM SS_products p left join SS_product_options_values o on (o.optionID=36 and o.productID=p.productID) WHERE p.productID='38900'