FATAL ERROR OCCURRED :

at query level > 1064SELECT p.image, p.name as pageName, p.html , c.name as categoryName, p.category_id,p.pagetitle,p.meta_description,p.meta_keywords, ( SELECT GROUP_CONCAT( CONCAT(name,'==',link) SEPARATOR '&&' ) from links where name='promo_small' or name='promo' ) as links from pages as p join categories as c on (c.id = p.category_id) AND c.name = 'our gyms' and p.name ='we won't tie you down' 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 't tie you down'' at line 8