SELECT de.id,de.title,case when date_format(date_start,'%d %M %Y') = date_format(date_end,'%d %M %Y') then date_format(date_start,'%d %M %Y') else CONCAT(date_format(date_start,'%d %M %Y'),' - ',date_format(date_end,'%d %M %Y')) end event_date,case when is_all_day = 1 then '' else CONCAT(date_format(date_start,'%H:%i'),' - ',date_format(date_end,'%H:%i')) end event_time,case when is_recuring =1 then  CONCAT(' Every ',date_format(date_start,'%W'))  else '' end event_day ,d.address,d.title as dir_name, d.address1,d.address2,de.introtext,d.tid,d.country,d.attributes,is_recuring,is_all_day,
 t.id as town_id,t.title as town_title,c.title as cat_title,c.id as cat_id,c.name,c.image,d.latlang,de.web
 FROM cl_directory_events AS de
 LEFT JOIN cl_directory AS d on de.did =d.id
 LEFT JOIN cl_directory AS t on d.tid =t.id
 INNER JOIN cl_categories AS c on de.catid =c.id
 WHERE  ('2014-10-31' between date_format(date_start,'%Y-%m-%d') and date_format(date_end,'%Y-%m-%d') ||  de.date_end >='2014-10-31' ) AND de.published =1  AND t.id = 630
 ORDER BY DATE_FORMAT(date_start, '%Y-%m-%d'), DATE_FORMAT(date_start, '%r')
Map View
Ducklings Swimming Lessons

Ducklings Swimming Lessons

06 September 2014 - 08 November 2014
11:00 - 11:45

Shannon Swimming & Leisure Centre, Bothar Linne, Tullyglass, Shannon, Co Clare

Swimming Lessons for kids

Clare Says Céad Míle Fáilte
Kids Midweek Swimming Lessons

Kids Midweek Swimming Lessons

09 September 2014 - 11 November 2014
16:00 - 16:45

Shannon Swimming & Leisure Centre, Bothar Linne, Tullyglass, Shannon, Co Clare

Midweek swimming lessons for kids

Clare Says Céad Míle Fáilte
Different Strokes Swimming Lessons

Different Strokes Swimming Lessons

09 September 2014 - 16 December 2014
17:00 - 17:45

Shannon Swimming & Leisure Centre, Bothar Linne, Tullyglass, Shannon, Co Clare

Different Strokes Lane Swimming for Kids

Clare Says Céad Míle Fáilte
Parent & Toddler Swimming Lessons

Parent & Toddler Swimming Lessons

08 October 2014 - 12 November 2014
10:15 - 10:45 Every Wednesday

Shannon Swimming & Leisure Centre, Bothar Linne, Tullyglass, Shannon, Co Clare

Water based quality fun time for parent and toddler

Clare Says Céad Míle Fáilte
Halloween Camp at Shannon Swimming and Leisure Centre

Halloween Camp at Shannon Swimming and Leisure Centre

28 October 2014 - 31 October 2014
09:30 - 14:30

Shannon Swimming & Leisure Centre, Bothar Linne, Tullyglass, Shannon, Co Clare

Halloween Themed Sports and Activities Camp for Kids

Clare Says Céad Míle Fáilte