Hmm … that should do it though …
Looks like manual searches are not affected, as if AutoDetect does not follow same guidelines.
However when I look at some other comments you made, I wonder if your data source is keeping up? (eg. TDVB, etc).
For one, a title “TBA” or “Episode X” is produced by a given datasource.
RMTV does not make up these names, they are provided – so either the data source provides a record (episode) which has a title (which can be “TBA”), or there is not record.
I agree rmtvs does not make up those titles, they come from last week's query
Also note that what you see on the website of a data provider, may not be in sync with what their API is offering (I have seen this quite a few times with TVDB, so this may very well happen with others as well).
I have observed many time that api and website are not always agreeing.
But in this case, its all api that yields results, but last week's api results often differ from this morning's api results.
As far as auto detect goes, it will first try to find an episode in the database (for speed), and if it cannot find an episode, it will try to find one online.
This would explain your title issues, when an episode was previously already stored in the database with a placeholder name (TBA or Episode X).
Now, I could tell RMTV to automatically update the found TV Show, but this could come with issues when dumping multiple episodes of the same show (eg. update the same TV Show multiple times).
I could try to build that in and see how bad this will be … it’s a beta after all right? 
What are those issues you seem to expect?
As always; I tried to do this right away, but I’m afraid it may take until tomorrow for me to build something like that (long story).
The SQL error is a problem though – it will prevent the rest of the code to be executed, so part of what may need to be done will not be executed.
I’ve not been able to reproduce this, so anything that can help for me to reproduce it, is most welcome.
Apart from forwarding you a show title and episode which yielded the error, is there anything else I can do?
And I'm not even sure you would reproduce it, or maybe just the following week
Perhaps we can continue in the forum – start a topic and I’ll find you there