Which obviously might still leave problems in the components. I'm afraid that I'm a Neanderthal who prefers to apply "Pascal identifier" naming conventions to files, tables and the rest, but regrettably there's a subspecies of H.sapiens which has forgotten its predecessors' hard-won knowledge.
As I think I said earlier, I prefer to build my own queries and (possibly) to parse my own results, largely because of the full exposure that gives when problems like this occur. A lot of people criticise this approach on the grounds that it leaves systems open to SQL-injection exploits (obligatory xkcd:
https://xkcd.com/327/), quite frankly I think their indignation would be better directed towards the provision of a decent set of SQL filtering and debugging libraries or components.
While I'm on this micro-rant, I'd also suggest that hand-driven SQL can be rather more tolerant of connection-pooling servers etc. Components such as are traditionally found in Delphi et al. have very little tolerance of query interruption: something I found to my cost when Debian automatically upgraded and then restarted a server.
MarkMLl