Fix table select for one table