select t.id as tid, c.nombre as nombre, c.subnombre as subnombre, c.descripcion as descripcion, c.maestro as maestro, c.imagen_a as cimga, c.imagen_b as cimgb, c.imagen_c as cimgc, day(t.fecha_inicio) as dini, month(t.fecha_inicio) as mini, day(t.fecha_fin) as dfin, month(t.fecha_fin) as mfin, t.precio as precio, t.promocion as promo, t.promo_estado as promo_estado, t.playera_estado as playera_estado, t.cupo as cupo, l.nombre as lnombre, l.federativa as federativa, l.pais as pais, l.municipio as municipio from tienda_evento as t join curso as c on c.id = t.curso_id join lugar as l on l.id = t.lugar_id where t.id=? and t.estado =1 ;