Hi Lea,
Agree with Muhammed that * is to be avoided, always, even if you are using all of the attributes.
It breaks, or even worse gives wrong results, as soon as the sequence of attributes gets changed.
For example, if you publish an initial definition of your entity, then change sequence of attributes and publish again, the sequence of columns in the underlying table doesn´ t change.
If you then later base a structure definition for an SQL widget on the entity definition, you get this type of problems, as it doesn´ t match the underlying table definition.
So in the SQL, explicitly name the attributes you want to select in a sequence matching your structure.
Dorine