MySQL server has gone away SQL query : select photoID, filename, thumbnail, enlarged from SS_product_pictures where photoID!=18384767 AND productID=35395