Invalid tables names in 'order by' columns were not detected in some cases. Example: select x from dual order by y.x