thank you for all ur replies, they have been very useful, as it has shown me and explained to me different things. But if I get rid of the WHERE, so I have:
"SELECT datePosted, jobRef, jobTitleGB
FROM o,m
WHERE o.startMonthGB = m.startMonthGB AND o.startMonthGB = '$when'
OR o.monthsCovered LIKE %$when%
ORDER BY 'datePosted'"
it still comes up with the same error. And the Boss wants this to be implemented. Kind of stuck here!!
Thanks again for all ur help guys, it has been great, as I only have been working on php for 3 weeks now!
Tigger