mysql only one cursor