Thanks for the reply, but it didn't work. At the moment I can get the 'ImageLocation' integer to appear with each image, but I want to display the 'LocationName' from Locations instead by joining (merging?) the two.
You will see on the test page above that it displays the INT OK.
I will attach the complete page, so that you can see the php code.
My Image table has the following relevant columns:
…and the Location table: