10/20/2014 5:12:04 PM, Before Delete Table 10/20/2014 5:12:04 PM, After Delete Table 10/20/2014 5:12:41 PM, System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: SQLite error near "ORDER": syntax error ---> System.Data.SQLite.SQLiteException: SQLite error near "ORDER": syntax error at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain) at System.Data.SQLite.SQLiteCommand.BuildNextCommand() at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index) at System.Data.SQLite.SQLiteDataReader.NextResult() at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) at System.Data.SQLite.SQLiteCommand.ExecuteReader() at EVE_Isk_per_Hour.frmMain.LoadFacilities(Int64 ItemGroupID, Int64 ItemCategoryID, Boolean NewFacility, String& FacilityActivity, ComboBox& FacilityTypeCombo, ComboBox& FacilityRegionCombo, ComboBox& FacilitySystemCombo, ComboBox& FacilityCombo, Label& FacilityBonusLabel, Label& FacilityDefaultLabel, Label& FacilityManualMELabel, TextBox& FacilityManualMETextBox, Label& FacilityManualTELabel, TextBox& FacilityManualTETextBox, Button& FacilitySaveButton, Label& FacilityTaxRateLabel, String Tab, Boolean AutoLoadFacility, String OverrideFacilityName, Boolean TruncateFacilityName) at EVE_Isk_per_Hour.frmMain.LoadFacility(IndustryType ProductionType, Boolean IsDefault, Boolean NewBP, String FacilityActivity, ComboBox& FacilityTypeCombo, ComboBox& FacilityRegionCombo, ComboBox& FacilitySystemCombo, ComboBox& FacilityCombo, Label& FacilityBonusLabel, Label& FacilityDefaultLabel, Label& FacilityManualMELabel, TextBox& FacilityManualMETextBox, Label& FacilityManualTELabel, TextBox& FacilityManualTETextBox, Button& FacilitySaveButton, Label& FacilityTaxRateLabel, String Tab, CheckBox& FacilityActivityCostCheck, CheckBox& FacilityActivityTimeCheck, Boolean& FacilityLoaded, ComboBox& FacilityActivityCombo, Int32 BPTech, Int64 ItemGroupID, Int64 ItemCategoryID, Boolean LoadActivites) at EVE_Isk_per_Hour.frmMain.InitManufacturingTab() at EVE_Isk_per_Hour.frmMain..ctor() --- End of inner exception stack trace --- at EVE_Isk_per_Hour.My.MyProject.MyForms.Create__Instance__[T](T Instance) at EVE_Isk_per_Hour.My.MyProject.MyForms.get_frmMain() at EVE_Isk_per_Hour.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() 10/20/2014 5:14:14 PM, System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: SQLite error near "ORDER": syntax error ---> System.Data.SQLite.SQLiteException: SQLite error near "ORDER": syntax error at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain) at System.Data.SQLite.SQLiteCommand.BuildNextCommand() at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index) at System.Data.SQLite.SQLiteDataReader.NextResult() at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave) at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior) at System.Data.SQLite.SQLiteCommand.ExecuteReader() at EVE_Isk_per_Hour.frmMain.LoadFacilities(Int64 ItemGroupID, Int64 ItemCategoryID, Boolean NewFacility, String& FacilityActivity, ComboBox& FacilityTypeCombo, ComboBox& FacilityRegionCombo, ComboBox& FacilitySystemCombo, ComboBox& FacilityCombo, Label& FacilityBonusLabel, Label& FacilityDefaultLabel, Label& FacilityManualMELabel, TextBox& FacilityManualMETextBox, Label& FacilityManualTELabel, TextBox& FacilityManualTETextBox, Button& FacilitySaveButton, Label& FacilityTaxRateLabel, String Tab, Boolean AutoLoadFacility, String OverrideFacilityName, Boolean TruncateFacilityName) at EVE_Isk_per_Hour.frmMain.LoadFacility(IndustryType ProductionType, Boolean IsDefault, Boolean NewBP, String FacilityActivity, ComboBox& FacilityTypeCombo, ComboBox& FacilityRegionCombo, ComboBox& FacilitySystemCombo, ComboBox& FacilityCombo, Label& FacilityBonusLabel, Label& FacilityDefaultLabel, Label& FacilityManualMELabel, TextBox& FacilityManualMETextBox, Label& FacilityManualTELabel, TextBox& FacilityManualTETextBox, Button& FacilitySaveButton, Label& FacilityTaxRateLabel, String Tab, CheckBox& FacilityActivityCostCheck, CheckBox& FacilityActivityTimeCheck, Boolean& FacilityLoaded, ComboBox& FacilityActivityCombo, Int32 BPTech, Int64 ItemGroupID, Int64 ItemCategoryID, Boolean LoadActivites) at EVE_Isk_per_Hour.frmMain.InitManufacturingTab() at EVE_Isk_per_Hour.frmMain..ctor() --- End of inner exception stack trace --- at EVE_Isk_per_Hour.My.MyProject.MyForms.Create__Instance__[T](T Instance) at EVE_Isk_per_Hour.My.MyProject.MyForms.get_frmMain() at EVE_Isk_per_Hour.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()