Add Table alias before primarykeys for Table::get()

If get() method is used with contain there is a risk of having a integrity constraint violation :

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous
Edited test associated with that fix
Merge pull request #2735 from Grafikart/3.0-fix-table-get

Add Table alias before primarykeys for Table::get()