bugfix to passed aliases and mysql pass