What indexes i have to set for a query like this? thanks
SELECT distinct event_dates.* FROM `event_dates`
INNER JOIN `events` ON `events`.id = `event_dates`.event_id
INNER JOIN `cores` ON `cores`.resource_id = `events`.id AND cores.resource_type = 'Event'
INNER JOIN `cores_kinds` ON `cores_kinds`.core_id = `cores`.id
INNER JOIN `kinds` ON `kinds`.id = `cores_kinds`.kind_id
WHERE (((super_kind_en IN ('party','cinema and theater'))
AND (day >= '2010-07-17' AND day <= '2010-08-16'))
AND (cores.searchable like '%p%'))
ORDER BY day, cores.vote desc LIMIT 0, 30