SELECTCOUNT(a.id) FROMtXc8rB_eb_eventsAS a INNERJOINtXc8rB_eb_event_categoriesAS b ON a.id = b.event_id WHERE b.category_id IN(31,1,2,3,4,5,27,28,33) AND published = 1 AND `access` IN (1,1,5) AND event_date >= "2017-12-14"

SELECTCOUNT(a.id) FROMtXc8rB_eb_eventsAS a INNERJOINtXc8rB_eb_event_categoriesAS b ON a.id = b.event_id WHERE b.category_id IN(29,11,12,13,14,15,16,17,18,19,20,21,22,23,24) AND published = 1 AND `access` IN (1,1,5) AND event_date >= "2017-12-14"

SELECTCOUNT(a.id) FROMtXc8rB_eb_eventsAS a INNERJOINtXc8rB_eb_event_categoriesAS b ON a.id = b.event_id WHERE b.category_id IN(30,6,7,8,9,10,25,26,34) AND published = 1 AND `access` IN (1,1,5) AND event_date >= "2017-12-14"