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 'etranger'' at line 4

Query:
select e.*, a.article_code, date_format(e.event_date, '%W %D %M %Y') eventdate, date_format(e.events_enddate, '%D %M %Y') enddate from events e left join article a on (e.article_id = a.article_id) where e.event_code = 'laurent_perrier_at_l'etranger'Error occured in file /var/www/vhosts/thebuttonclub.com/httpdocs/cms/system/session.php line 165: 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 'etranger/gallery/' WHERE ses_id='5bk0i8v0vdhp2cnhh9iftnbhd6' AND ip = '38.' at line 2