The general query syntax is:

Select fields from tables where criteria order by field

where the bold words are values you supply
fields is a comma separated list. Tables are 'joined' to each other with a field name common to both in parenthesis

When a field is not unique to a table it must be qualified with the table name wherever it appears, e.g. details.TaxaNo