echo query within add