Fix #4593 Manual SELECT doesn't change active table

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>