- fixed a bug resulting in "ERROR 1066 (42000): Not unique table/alias"