Thank you so much for the replies
Cedrik, I thought that SQL is case insensitive, so long as you're consistent within a query, say using only 'id' or only 'ID' throughout the whole query and not mixing.
Hko, you're right on the money. I hadn't copied and pasted the code from the link I gave, I had built it up from a previous version that was given in an earlier stage of the tutorial -- OOOPS. Good eye, Hko.
djgerbavore, thanks for the tip.