I keep getting the exception
System.Data.SQLite.SQLiteException: 'SQL logic error near "=": syntax error'
and I have no idea why or whats causing it :(
my code is as follows
SQLiteConnection c = new SQLiteConnection("Data Source = StuTchInfo.db");
SQLiteCommand cmd = new SQLiteCommand(c);
cmd.CommandText = "SELECT *" +
    "FROM tblTeachers" +
   $"WHERE teacherID = '{idField.Text.ToString()}'";
c.Open();
SQLiteDataReader r = cmd.ExecuteReader();
//code processing data from data reader
        
and the exception is thrown on the last line. idField.Text is a string value and I have already tried using idField.Text.ToString() but it still throws the same error. Any ideas?
 
    
 
     
    