fix bug when selecting a paging using its number

if a table hasn't been declared in an innerjoin,
where clauses on that table will be silently discarded (why... DEAR GOD
WHY ???)