add table prefix to places missing in the query