Invalid SQL: (SELECT a.art_id AS id, a.type AS type, a.art_pubstartdate AS pubstartdate, a.art_eventstartdate AS eventstartdate, a.art_pubenddate AS pubenddate, a.type AS folder, a.art_img AS image, a.art_venue AS venue, a.art_address AS address, a.art_tel AS tel, a.art_url AS url, a.art_optime AS optime, a.art_video AS video, a.art_video AS map, ad.art_imgcaption AS caption, ad.art_metadesc AS metadesc, ad.art_metakeyword AS metakeyword, ad.art_title AS title, ad.art_seo AS seo, ad.art_trail AS trail, ad.art_bodycopy AS bodycopy, ad.art_byline AS byline, s.sec_initial , s.sec_name, c.cat_initial, c.cat_name
FROM thirst_article AS a
LEFT JOIN thirst_articledesc AS ad ON ad.art_id = a.art_id
LEFT JOIN thirst_section AS s ON s.sec_id = a.sec_id
LEFT JOIN thirst_category AS c ON c.cat_id = a.cat_id
WHERE ad.art_seo ='Osmund Bernard's World Class Cocktail Recipes')
UNION
(SELECT v.vn_id AS id, v.type AS type, v.created_date AS pubstartdate, v.created_date AS eventstartdate, v.created_date AS pubenddate, v.type AS folder, v.vn_img AS image, v.vn_id AS venue, v.vn_address AS address, v.vn_tel AS tel, v.vn_url AS url, v.vn_optime AS optime, v.vn_img AS video, v.vn_map AS map, vd.vn_imgcaption AS caption, vd.vn_metadesc AS metadesc, vd.vn_metakeyword AS metakeyword, vd.vn_name AS title, vd.vn_seo AS seo, vd.vn_trail AS trail, vd.vn_bodycopy AS bodycopy, vd.vn_byline AS byline, s.sec_initial , s.sec_name, c.cat_initial, c.cat_name
FROM thirst_venue AS v
LEFT JOIN thirst_venuedesc AS vd ON vd.vn_id = v.vn_id
LEFT JOIN thirst_section AS s ON s.sec_id = v.sec_id
LEFT JOIN thirst_category AS c ON c.cat_id = v.cat_id
WHERE vd.vn_seo ='Osmund Bernard's World Class Cocktail Recipes')
UNION
(SELECT g.gl_id AS id, g.type AS type, g.gl_pubstartdate AS pubstartdate, g.gl_pubstartdate AS eventstartdate, g.gl_pubstartdate AS pubenddate, gd.gl_folder AS folder, g.gl_coverimg AS image, g.gl_id AS venue, g.gl_id AS address, g.gl_id AS tel, g.gl_id AS url, g.gl_id AS optime, g.gl_coverimg AS video, g.gl_coverimg AS map, gd.gl_title AS caption, gd.gl_metadesc AS metadesc, gd.gl_metakeyword AS metakeyword, gd.gl_title AS title, gd.gl_seo AS seo, gd.gl_trail AS trail, gd.gl_bodycopy AS bodycopy, gd.gl_byline AS byline, s.sec_initial , s.sec_name, c.cat_initial, c.cat_name
FROM thirst_gallery AS g
LEFT JOIN thirst_gallerydesc AS gd ON gd.gl_id = g.gl_id
LEFT JOIN thirst_section AS s ON s.sec_id = g.sec_id
LEFT JOIN thirst_category AS c ON c.cat_id = g.cat_id
WHERE gd.gl_seo ='Osmund Bernard's World Class Cocktail Recipes') MySQL Error :1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's World Class Cocktail Recipes')
UNION
(SELECT v.vn_id AS id, v.type AS ' at line 6 Error file: /home/thirstm1/public_html/core/libs/classes/db.class.php Error line: 341