Error doing : (SELECT s.*,c.cat, c.subcat,c.child, c.title,c.description,c.instructions,v.region, v.area, v.town, v.postcode, v.address, k.company, k.phone FROM shared_courses AS s, course_types AS c, venues AS v, companies as k WHERE s.type=c.id AND s.tdate > '1284064510' AND s.venue=v.id AND c.child=iosh AND k.id = s.user ORDER BY tdate ASC)Unknown column 'iosh' in 'where clause'