fix table alais in query