[BUGFIX] Embed parameters in SQL fragment create by getSelectQuery