Bugfix for missing SQL alias