2018-8-21 11:01:8 : llego sql SELECT pers_id, pers_descripcion FROM 286_empresarctech.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-8-21 13:15:38 : llego sql SELECT pers_id, pers_descripcion FROM 286_empresarctech.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-8-21 13:23:42 : llego sql SELECT pers_id, pers_descripcion FROM 286_empresarctech.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-8-27 14:08:12 : llego sql SELECT pers_id, pers_descripcion FROM 286_empresarctech.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-8-28 9:45:27 : llego sql SELECT pers_id, pers_descripcion FROM 286_empresarctech.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-9-13 10:11:3 : llego sql SELECT pers_id, pers_descripcion FROM 314_piodata.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2018-10-18 14:50:8 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 14:50:8 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 14:50:10 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 14:53:2 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-887' ORDER BY c_descripcion
2018-10-18 14:53:2 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 14:53:4 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 14:57:38 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000000'
2018-10-18 14:57:44 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000000'
2018-10-18 15:01:43 : llego sql SELECT 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			AS c_id, 	IFNULL(ct.c_descripcion,"")  AS cte_nombre, 	IFNULL(pa.monto,0.00) 		AS monto, 	IFNULL(co.num_jugado,"") 	AS num_jugado, 	co.fecha_compra, 	co.valor_club, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle FROM 315_empresaprueba.club_pagos pa INNER JOIN 315_empresaprueba.club_contratos co ON (pa.num_contr = co.num_contr) AND (pa.suc_id = co.suc_id) LEFT  JOIN 315_empresaprueba.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.autoriza=1) AND  	(pa.tipo_pago=1) AND   (pa.suc_id='3') AND  	(pa.e_id  ='2') 
2018-10-18 15:01:54 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:01:54 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='1') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:02:8 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-887' ORDER BY c_descripcion
2018-10-18 15:02:8 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C8-888-887') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:07:6 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:07:6 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:07:8 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:08:19 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:08:19 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:08:21 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:10:37 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000001'
2018-10-18 15:10:44 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000001'
2018-10-18 15:13:59 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:14:0 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='1') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:14:14 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:14:14 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:15:26 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:15:26 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:20:58 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:20:58 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='1') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:21:11 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:21:12 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:25:34 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:25:34 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:25:37 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:25:57 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:25:58 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:25:59 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:27:30 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:27:31 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:27:32 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:27:45 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:27:45 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:27:47 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:34:1 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:34:1 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:34:2 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:34:36 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:34:36 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 15:34:37 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 15:36:10 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000002'
2018-10-18 15:36:16 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 315_empresaprueba.club_contratos co LEFT JOIN 315_empresaprueba.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 315_empresaprueba.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 315_empresaprueba.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0030000002'
2018-10-18 15:50:50 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:50:50 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='1') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:51:13 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:51:13 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:5 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:5 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:8 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:8 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:9 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:9 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:9 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:10 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:10 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:10 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:11 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:11 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:52:12 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 15:52:12 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C2-222-222') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:53:13 : llego sql SELECT 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			AS c_id, 	IFNULL(ct.c_descripcion,"")  AS cte_nombre, 	IFNULL(pa.monto,0.00) 		AS monto, 	IFNULL(co.num_jugado,"") 	AS num_jugado, 	co.fecha_compra, 	co.valor_club, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle FROM 315_empresaprueba.club_pagos pa INNER JOIN 315_empresaprueba.club_contratos co ON (pa.num_contr = co.num_contr) AND (pa.suc_id = co.suc_id) LEFT  JOIN 315_empresaprueba.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.autoriza=1) AND  	(pa.tipo_pago=1) AND   (pa.suc_id='3') AND  	(pa.e_id  ='2') 
2018-10-18 15:54:8 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 15:54:8 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='1') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 15:54:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-887' ORDER BY c_descripcion
2018-10-18 15:54:22 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 315_empresaprueba.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 315_empresaprueba.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 315_empresaprueba.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 315_empresaprueba.club_contratos cn WHERE (cn.c_id='C8-888-887') AND   ( IF( (cn.tipo_status=10 OR cn.tipo_status=1), (cn.ultimo_sorteo >= NOW()) OR ((DATE_ADD(IFNULL(cn.fecha_upago,NOW()), INTERVAL 13 WEEK) <= NOW())=0),1=1) ) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-10-18 16:14:13 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:14:13 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:14:15 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:14:36 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 16:14:37 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:14:38 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:15:50 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:15:51 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:15:52 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:16:13 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 16:16:13 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:16:15 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:18:4 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:18:5 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:18:6 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:22:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:22:22 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:22:23 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:22:41 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 16:22:42 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:22:43 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:28:33 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:28:34 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:28:35 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:28:56 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C2-222-222' ORDER BY c_descripcion
2018-10-18 16:28:57 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:28:58 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:30:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-887' ORDER BY c_descripcion
2018-10-18 16:30:21 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:30:23 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:30:56 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:30:56 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:30:58 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:31:50 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-889' ORDER BY c_descripcion
2018-10-18 16:31:51 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:31:52 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:33:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 16:33:21 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:33:22 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 16:33:37 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-889' ORDER BY c_descripcion
2018-10-18 16:33:38 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 16:33:39 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 17:00:57 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-10-18 17:00:57 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 17:00:58 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-10-18 17:02:3 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_ref2,"")         AS c_ref2 FROM 315_empresaprueba.clientes WHERE c_activo=1 AND   c_id    ='C8-888-889' ORDER BY c_descripcion
2018-10-18 17:02:4 : llego sql SELECT tipo_dia, descripcion FROM 315_empresaprueba.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-10-18 17:02:5 : llego sql SELECT valor, descrip FROM 315_empresaprueba.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 14:30:38 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-14 14:30:38 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 14:30:40 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 14:31:26 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-14 14:31:26 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 14:31:28 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 14:55:10 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-14 14:55:11 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 14:55:12 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 14:55:33 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C4-705-2338-1' ORDER BY c_descripcion
2018-12-14 14:55:33 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 14:55:34 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 15:04:13 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-14 15:04:13 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 15:04:14 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 15:04:28 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C8-888-880' ORDER BY c_descripcion
2018-12-14 15:04:28 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-14 15:04:30 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-14 15:10:33 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:10:33 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 15:17:54 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:17:54 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 15:19:0 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:19:0 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 15:29:30 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:29:31 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 15:29:52 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 15:31:51 : llego sql SELECT   pa.autoinc, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			    AS c_id, 	IFNULL(ct.c_descripcion,"")   AS c_descripcion, 	IFNULL(ct.c_idfiscal,"")      AS c_idfiscal, 	IFNULL(co.num_jugado,"") 	    AS num_jugado, 	IFNULL(pa.anulado_monto,0.00) AS anulado_monto,   IFNULL(co.monto_disp ,0.00)   AS monto_disp,	IFNULL(co.valor_club ,0.00)   AS valor_club, 	co.fecha_compra, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle, 	IFNULL(pa.tipo_p_id,1) AS tipo_p_id, 	IFNULL(pa.id_forma,1)  AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON pa.num_contr= co.num_contr and pa.suc_id= co.suc_id INNER JOIN 73154_pruebaclub1.clientes ct ON pa.c_id = ct.c_id WHERE 	pa.autoinc='11'
2018-12-14 15:31:54 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 15:32:21 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 15:36:7 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:36:8 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 15:47:53 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 15:48:7 : llego sql SELECT   pa.autoinc, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			    AS c_id, 	IFNULL(ct.c_descripcion,"")   AS c_descripcion, 	IFNULL(ct.c_idfiscal,"")      AS c_idfiscal, 	IFNULL(co.num_jugado,"") 	    AS num_jugado, 	IFNULL(pa.anulado_monto,0.00) AS anulado_monto,   IFNULL(co.monto_disp ,0.00)   AS monto_disp,	IFNULL(co.valor_club ,0.00)   AS valor_club, 	co.fecha_compra, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle, 	IFNULL(pa.tipo_p_id,1) AS tipo_p_id, 	IFNULL(pa.id_forma,1)  AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON pa.num_contr= co.num_contr and pa.suc_id= co.suc_id INNER JOIN 73154_pruebaclub1.clientes ct ON pa.c_id = ct.c_id WHERE 	pa.autoinc='9'
2018-12-14 15:48:15 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 15:51:27 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 15:51:27 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:10:31 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:10:31 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:12:46 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:12:46 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:13:43 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:13:44 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:27:1 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:27:1 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:28:4 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:28:4 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:28:29 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:28:30 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:28:57 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:28:57 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:29:43 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:29:44 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:35:18 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:35:19 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:36:34 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:36:34 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:36:40 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:36:40 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:36:44 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:36:45 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:36:52 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:36:52 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:36:59 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:36:59 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:38:0 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:38:0 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:38:5 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:38:5 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:38:42 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:38:43 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:38:46 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:38:46 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:40:49 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-14 16:55:7 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:55:7 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:56:11 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:56:11 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:58:47 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:58:48 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-14 16:59:27 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-14 16:59:27 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 8:52:16 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 8:52:16 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 8:52:18 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 8:52:32 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C8-888-881' ORDER BY c_descripcion
2018-12-17 8:52:32 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 8:52:34 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 8:53:11 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000004'
2018-12-17 8:53:18 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000004'
2018-12-17 9:08:19 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 9:08:19 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 9:08:44 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C4-705-2338-1' ORDER BY c_descripcion
2018-12-17 9:08:44 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='C4-705-2338-1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 9:09:7 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.suc_id='2') AND (pa.e_id  ='3') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 9:17:36 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 9:18:3 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 9:18:9 : llego sql SELECT   pa.autoinc, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			    AS c_id, 	IFNULL(ct.c_descripcion,"")   AS c_descripcion, 	IFNULL(ct.c_idfiscal,"")      AS c_idfiscal, 	IFNULL(co.num_jugado,"") 	    AS num_jugado, 	IFNULL(pa.anulado_monto,0.00) AS anulado_monto,   IFNULL(co.monto_disp ,0.00)   AS monto_disp,	IFNULL(co.valor_club ,0.00)   AS valor_club, 	co.fecha_compra, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle, 	IFNULL(pa.tipo_p_id,1) AS tipo_p_id, 	IFNULL(pa.id_forma,1)  AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON pa.num_contr= co.num_contr and pa.suc_id= co.suc_id INNER JOIN 73154_pruebaclub1.clientes ct ON pa.c_id = ct.c_id WHERE 	pa.autoinc='21'
2018-12-17 9:18:16 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 9:18:19 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 9:50:31 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 9:50:32 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 9:51:18 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 9:51:18 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 9:51:23 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 9:51:23 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:26:3 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:26:4 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:35:15 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:35:16 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:35:34 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:35:35 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:35:43 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:35:44 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:36:23 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:36:23 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:36:29 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:36:30 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:44:33 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:44:34 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:44:37 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:44:37 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:44:41 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:44:41 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:44:46 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:44:46 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:46:14 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:46:15 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 11:46:20 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 11:46:20 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:10:56 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 13:10:56 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:13:0 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 13:13:1 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:13:5 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:18:11 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 13:18:12 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:18:14 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:21:30 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='5' ORDER BY c_descripcion
2018-12-17 13:21:31 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='5') AND (ROUND(cn.monto_disp,2)>0.00) AND NOT (cn.tipo_status=10 OR cn.tipo_status=3 OR cn.tipo_status=5 OR cn.tipo_status=7 OR cn.tipo_status=8) ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:22:29 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C00009999' ORDER BY c_descripcion
2018-12-17 13:22:30 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:22:32 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:23:23 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000005'
2018-12-17 13:23:24 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000005'
2018-12-17 13:23:46 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='CC01634005' ORDER BY c_descripcion
2018-12-17 13:23:47 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='CC01634005') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:23:56 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='5' ORDER BY c_descripcion
2018-12-17 13:23:56 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='5') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:24:35 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 13:24:36 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:24:38 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:24:57 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C00009999' ORDER BY c_descripcion
2018-12-17 13:24:58 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:25:2 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:27:9 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000006'
2018-12-17 13:27:10 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000006'
2018-12-17 13:33:30 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 13:33:31 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:33:40 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='5' ORDER BY c_descripcion
2018-12-17 13:33:41 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='5') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:36:0 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 13:36:1 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:36:5 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:36:34 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C8-888-882' ORDER BY c_descripcion
2018-12-17 13:36:35 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-17 13:36:38 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-17 13:37:12 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000007'
2018-12-17 13:37:19 : llego sql SELECT   co.num_contr, co.fecha_compra, co.ultimo_sorteo, co.num_jugado,   co.valor_club, co.monto_total, (IFNULL(co.monto_total,0.00)-IFNULL(co.monto_rete,0.00)) AS valor2 , co.pers_id,  cl.c_descripcion,  cl.c_idfiscal,  pe.pers_descripcion,  di.descripcion FROM 73154_pruebaclub1.club_contratos co LEFT JOIN 73154_pruebaclub1.clientes  cl ON (co.c_id    = cl.c_id ) LEFT JOIN 73154_pruebaclub1.personal  pe ON (co.pers_id = pe.pers_id ) LEFT JOIN 73154_pruebaclub1.club_dias di ON (co.tipo_sorteo = di.tipo_dia ) WHERE co.num_contr='0000007'
2018-12-17 13:39:3 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C00009999' ORDER BY c_descripcion
2018-12-17 13:39:4 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='C00009999') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:39:16 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 13:39:17 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:39:26 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C8-888-882' ORDER BY c_descripcion
2018-12-17 13:39:27 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='C8-888-882') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 13:39:55 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='3') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 13:42:40 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='4') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 13:42:47 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='4') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 13:44:18 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='4') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 13:44:26 : llego sql SELECT   pa.autoinc, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id,"0") 			    AS c_id, 	IFNULL(ct.c_descripcion,"")   AS c_descripcion, 	IFNULL(ct.c_idfiscal,"")      AS c_idfiscal, 	IFNULL(co.num_jugado,"") 	    AS num_jugado, 	IFNULL(pa.anulado_monto,0.00) AS anulado_monto,   IFNULL(co.monto_disp ,0.00)   AS monto_disp,	IFNULL(co.valor_club ,0.00)   AS valor_club, 	co.fecha_compra, 	IFNULL(co.monto_upago,0.00) AS monto_upago, 	IFNULL(co.fecha_upago,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"") AS detalle, 	IFNULL(pa.tipo_p_id,1) AS tipo_p_id, 	IFNULL(pa.id_forma,1)  AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON pa.num_contr= co.num_contr and pa.suc_id= co.suc_id INNER JOIN 73154_pruebaclub1.clientes ct ON pa.c_id = ct.c_id WHERE 	pa.autoinc='30'
2018-12-17 13:44:35 : llego sql SELECT 	IFNULL(es.e_descripcion ,"")    AS e_descripcion, 	pa.autoinc AS id_pago, 	pa.op_id, 	pa.num_contr, 	pa.fecha, 	IFNULL(pa.c_id         ,"0") 	AS c_id, 	IFNULL(ct.c_idfiscal   ," ")  AS c_idfiscal, 	IFNULL(ct.c_descripcion," ")  AS c_descripcion, 	IFNULL(pa.monto        ,0.00) AS monto, 	IFNULL(co.num_jugado   ," ") 	AS num_jugado, 	co.fecha_compra, 	IFNULL(co.valor_club   ,0.00) AS valor_club, 	IFNULL(co.monto_upago  ,0.00) AS monto_upago, 	IFNULL(co.fecha_upago  ,0.00) AS fecha_upago, 	IFNULL(pa.autoriza_memo,"")   AS detalle, 	IFNULL(pa.tipo_p_id,1)   AS tipo_p_id, 	IFNULL(pa.id_forma,1)   AS id_forma FROM 73154_pruebaclub1.club_pagos pa INNER JOIN 73154_pruebaclub1.club_contratos co ON (pa.num_contr = co.num_contr) LEFT  JOIN 73154_pruebaclub1.estaciones     es ON (pa.e_id = es.e_id) AND (pa.suc_id=es.suc_id) LEFT  JOIN 73154_pruebaclub1.clientes       ct ON (pa.c_id = ct.c_id) WHERE (pa.tipo_pago=1) AND (pa.autoriza=1) AND (pa.suc_id='4') AND (pa.e_id  ='2') AND (pa.fecha >= DATE_ADD(NOW(), INTERVAL -2 DAY)) ORDER BY pa.suc_id, pa.e_id, pa.fecha ASC 
2018-12-17 14:11:26 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 14:11:26 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 14:11:33 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='5' ORDER BY c_descripcion
2018-12-17 14:11:34 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='5') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 14:48:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 14:48:22 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 15:00:50 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-17 15:00:50 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='1') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-17 15:00:57 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_ref2,"")         AS c_ref2 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='5' ORDER BY c_descripcion
2018-12-17 15:00:57 : llego sql SELECT  IF( (cn.tipo_status=10 OR cn.tipo_status=1),0,cn.tipo_status) AS col_ord,  cn.*, @SVigeC:=(SELECT   semanas_vigencia_club FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS Sem_Tota,  @STran := 73154_pruebaclub1.club_sem_transcurridas_hasta(cn.num_contr,IF(cn.tipo_status=6,1,2),"") 1 AS Sem_Tran,  @SPaga := IFNULL(cn.semanas_pag,0.00)                     AS Sem_Paga,  @SMora := (@STran-@SPaga)                                 AS Sem_Mora,  @SMora2:= IF(ROUND(@SMora,2)<=0.00,0.00,@SMora)           AS Sem_Mora2,  @SAdel := IF((@SPaga-@STran)<=0,0.00,(@SPaga-@strans))    AS Sem_Adel,  @SRest := (@SVigeC-@STran) 														 	 AS Sem_Rest, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL -1*(IFNULL(cp.horas_limit_hacer_retiros_antes_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_antpremi, (SELECT   DATE_ADD(cn.fecha_prox_sorteo, INTERVAL (IFNULL(cp.horas_limit_hacer_retiros_desp_premio,0)*60) MINUTE) FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_reti_despremi, (SELECT 		cp.fecha_sorteo AS fecha_sorteo FROM 73154_pruebaclub1.club_premiados cp WHERE DATE_FORMAT(cp.fecha_sorteo, "%Y-%m-%d")=DATE_FORMAT(cn.fecha_prox_sorteo, "%Y-%m-%d") ORDER BY autoinc DESC LIMIT 1) AS fecha_premiado, (SELECT   IFNULL(semanas_limite_primer_retiro,0) AS semanas_limite_primer_retiro FROM 73154_pruebaclub1.club_parametros cp ORDER BY autoinc DESC LIMIT 1) AS lim_sem_primerret FROM 73154_pruebaclub1.club_contratos cn WHERE (cn.c_id='5') ORDER BY col_ord ASC, cn.fecha_compra ASC, cn.num_contr ASC 
2018-12-18 8:48:32 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-18 8:48:32 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-18 8:48:34 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-18 8:51:35 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-18 8:51:35 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-18 8:51:36 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-18 10:09:40 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='1' ORDER BY c_descripcion
2018-12-18 10:09:41 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-18 10:09:42 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2018-12-18 10:10:21 : llego sql SELECT   IFNULL(c_id,"")           AS c_id,   IFNULL(c_descripcion,"")  AS c_descripcion,   IFNULL(c_idfiscal,"")     AS c_idfiscal,   IFNULL(c_telefono,"")     AS c_telefono,   IFNULL(c_direccion,"")    AS c_direccion,   IFNULL(c_ref2,"")         AS c_ref2,   IFNULL(c_ref3,"")         AS c_ref3 FROM 73154_pruebaclub1.clientes WHERE c_activo=1 AND   c_id    ='C4-705-2338' ORDER BY c_descripcion
2018-12-18 10:10:21 : llego sql SELECT tipo_dia, descripcion FROM 73154_pruebaclub1.club_dias WHERE activo=1 ORDER BY tipo_dia
2018-12-18 10:10:22 : llego sql SELECT valor, descrip FROM 73154_pruebaclub1.club_denom WHERE activo=1 ORDER BY valor
2019-4-18 13:15:8 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='MANILA146-CH' and p_existencia_dep_id = '8' 
2019-4-18 13:15:11 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703102' and p_existencia_dep_id = '8' 
2019-4-18 13:15:16 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD45213' and p_existencia_dep_id = '7' 
2019-4-18 13:15:21 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SI300330' and p_existencia_dep_id = '2' 
2019-4-18 13:15:22 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703042' and p_existencia_dep_id = '6' 
2019-4-18 13:15:27 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD45170' and p_existencia_dep_id = '2' 
2019-4-18 13:15:47 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZH62021AZ-44' and p_existencia_dep_id = '5' 
2019-4-18 13:16:4 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703290' and p_existencia_dep_id = '2' 
2019-4-18 13:16:5 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702842' and p_existencia_dep_id = '10' 
2019-4-18 13:16:14 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='MESSA246-AZ' and p_existencia_dep_id = '6' 
2019-4-18 13:16:20 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD44962' and p_existencia_dep_id = '8' 
2019-4-18 13:16:22 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD45035' and p_existencia_dep_id = '8' 
2019-4-18 13:16:44 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD44991' and p_existencia_dep_id = '2' 
2019-4-18 13:17:12 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702761' and p_existencia_dep_id = '7' 
2019-4-18 13:17:19 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703119' and p_existencia_dep_id = '5' 
2019-4-18 13:17:20 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703111' and p_existencia_dep_id = '7' 
2019-4-18 13:17:20 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702690' and p_existencia_dep_id = '1' 
2019-4-18 13:17:29 : llego sql SELECT pers_id, pers_descripcion FROM 171_calzashoes.personal WHERE pers_activo=1 AND pers_vendedor=1 AND (suc_id=0 OR suc_id=1) ORDER BY pers_descripcion ASC
2019-4-18 13:17:30 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702780' and p_existencia_dep_id = '7' 
2019-4-18 13:17:30 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702688' and p_existencia_dep_id = '7' 
2019-4-18 13:17:30 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='STREETCAPS-H' and p_existencia_dep_id = '2' 
2019-4-18 13:17:45 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZB600863' and p_existencia_dep_id = '6' 
2019-4-18 13:17:50 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703114' and p_existencia_dep_id = '7' 
2019-4-18 13:17:55 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='BRYAN45-CO' and p_existencia_dep_id = '1' 
2019-4-18 13:17:59 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703114' and p_existencia_dep_id = '7' 
2019-4-18 13:18:11 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD44903' and p_existencia_dep_id = '10' 
2019-4-18 13:18:12 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD44239' and p_existencia_dep_id = '10' 
2019-4-18 13:18:14 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD703115' and p_existencia_dep_id = '7' 
2019-4-18 13:18:22 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZD702780' and p_existencia_dep_id = '7' 
2019-4-18 13:18:34 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='SD44239' and p_existencia_dep_id = '2' 
2019-4-18 13:18:35 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZH502273CH-43' and p_existencia_dep_id = '2' 
2019-4-18 13:18:37 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZH62204BL-45' and p_existencia_dep_id = '8' 
2019-4-18 13:18:57 : llego sql SELECT   IFNULL(p_existencia,0.0000) AS cant FROM prod_existencia WHERE pr_id='ZB600860' and p_existencia_dep_id = '6' 
2021-8-20 19:13:55 : llego sql SELECT  pers_codigo,pers_descripcion FROM piopio_restaurante.personal WHERE pers_cedula="1"
2021-8-20 19:14:38 : llego sql SELECT  pers_codigo,pers_descripcion FROM piopio_restaurante.personal WHERE pers_cedula="80"
2021-8-20 19:17:39 : llego sql SELECT  pers_codigo,pers_descripcion FROM piopio_restaurante.personal WHERE pers_cedula="7"
2021-8-21 11:24:40 : llego sql SELECT  pers_codigo,pers_descripcion FROM piopio_restaurante.personal WHERE pers_cedula="6050"
2021-8-23 6:53:12 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="39195"
2021-8-23 6:54:26 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="80"
2021-8-23 8:17:22 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="6864"
2021-8-23 8:18:19 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="6864"
2021-8-23 8:18:53 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-773-1901"
2021-8-23 8:54:13 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-876-2085"
2021-8-23 16:18:17 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1"
2021-8-23 16:18:22 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="80"
2021-8-23 16:19:11 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-876-2085"
2021-8-23 16:21:19 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="5-701-1774"
2021-8-23 16:24:58 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-786-2273"
2021-8-26 16:54:48 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="80"
2021-8-27 14:03:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-715-1972"
2021-8-27 14:06:30 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-754-937"
2021-9-1 6:22:44 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="5-466-904"
2021-9-1 6:23:6 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-466-904"
2021-9-1 8:22:12 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-786-1557"
2021-9-1 10:01:35 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="6-58-410"
2021-9-1 10:05:52 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-438-929"
2021-9-1 10:09:14 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-716-1464"
2021-9-1 10:10:42 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-367-573"
2021-9-1 14:55:49 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-409-782"
2021-9-1 14:57:59 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="5-711-2367"
2021-9-1 15:18:16 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-737-1099"
2021-9-1 16:46:52 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-734-2272"
2021-9-1 16:49:22 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-734-2272"
2021-9-2 10:53:52 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-727-2040"
2021-9-3 7:03:50 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-220-991"
2021-9-3 7:06:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-721-1271"
2021-9-3 7:12:59 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-921-238"
2021-9-3 7:14:2 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-921-238"
2021-9-3 7:14:23 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-921-238"
2021-9-3 7:15:31 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-752-1750"
2021-9-3 7:16:29 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-752-1750"
2021-9-3 13:41:40 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-745-404"
2021-9-3 13:42:44 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-745-404"
2021-9-3 14:32:10 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-152-948"
2021-9-3 15:25:44 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="6-708-243"
2021-9-4 10:09:33 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-108-69"
2021-9-4 10:10:17 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-108-69"
2021-9-4 10:13:0 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-108-69"
2021-9-4 10:29:49 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-108-69"
2021-9-4 10:43:51 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-108-69"
2021-9-4 10:55:18 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-713-1761"
2021-9-6 6:01:28 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-821-2166"
2021-9-6 6:02:34 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-220-1138"
2021-9-6 6:04:58 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-745-2378"
2021-9-6 6:48:12 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-727-2381"
2021-9-6 6:49:20 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-811-2053"
2021-9-6 6:50:36 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-821-1224"
2021-9-6 6:51:4 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-713-1761"
2021-9-6 6:53:28 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="3-123-87"
2021-9-6 6:54:47 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-729-66"
2021-9-6 7:28:33 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-732-1254"
2021-9-6 7:36:43 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="7-711-2147"
2021-9-6 7:37:13 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-703-1209"
2021-9-6 7:38:51 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="3-703-988"
2021-9-6 7:40:26 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="3-709-1455"
2021-9-6 8:00:52 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-811-2053"
2021-9-6 9:37:31 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-464-795"
2021-9-6 9:49:16 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-518-2032"
2021-9-6 9:58:38 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-518-2032"
2021-9-6 12:43:29 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-722-640"
2021-9-6 13:05:15 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-700-2048"
2021-9-6 13:06:11 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="7-704-2261"
2021-9-6 13:08:30 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-750-594"
2021-9-6 13:08:38 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-750-594"
2021-9-6 13:08:40 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-750-594"
2021-9-6 13:09:9 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-105-1979"
2021-9-6 13:25:7 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-735-1676"
2021-9-6 13:34:4 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-722-640"
2021-9-6 13:43:57 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="6-68-740"
2021-9-6 13:51:20 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-705-1096"
2021-9-6 14:08:13 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="3-748-2036"
2021-9-6 14:19:13 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-200-481"
2021-9-6 14:19:33 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-200-881"
2021-9-6 14:27:6 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-700-2048"
2021-9-6 15:21:24 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-200-164"
2021-9-7 21:54:9 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="80"
2021-9-7 21:54:15 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1"
2021-9-8 6:25:22 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-711-271"
2021-9-8 6:26:48 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-704-92"
2021-9-8 6:28:13 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-704-92"
2021-9-8 6:28:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-712-1110"
2021-9-8 6:57:44 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-712-1110"
2021-9-8 7:05:51 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-712-1110"
2021-9-8 7:10:21 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-727-1249"
2021-9-8 7:16:34 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-747-1470"
2021-9-8 7:17:31 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-755-160"
2021-9-8 7:18:28 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-747-1470"
2021-9-8 7:22:47 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-929-1285"
2021-9-8 7:24:37 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-215-109"
2021-9-8 8:04:19 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-723-1102"
2021-9-8 8:06:40 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-110-763"
2021-9-8 8:07:42 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-110-763"
2021-9-8 9:27:20 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-524-2080"
2021-9-8 9:28:23 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-733-56"
2021-9-8 9:28:42 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-145-773"
2021-9-8 9:56:28 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-737-1660"
2021-9-8 10:12:2 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-701-1852"
2021-9-8 10:46:25 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-720-56"
2021-9-8 10:46:31 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-72056"
2021-9-8 10:46:34 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-72056"
2021-9-8 10:46:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-700-2056"
2021-9-8 13:40:43 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-464-28"
2021-9-8 14:18:50 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-708-1959"
2021-9-8 14:20:4 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-708-1959"
2021-9-8 14:21:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-733-56"
2021-9-8 14:55:32 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-867-1422"
2021-9-8 14:56:5 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-702-920"
2021-9-8 15:00:39 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-743-907"
2021-9-8 15:02:19 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-703-1837"
2021-9-8 15:08:11 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-703-575"
2021-9-8 15:17:14 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-793-2221"
2021-9-8 15:26:23 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-739-458"
2021-9-8 15:37:9 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-706-2360"
2021-9-8 15:39:32 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-792-932"
2021-9-8 16:21:7 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-734-1614"
2021-9-10 6:21:8 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-768-2478"
2021-9-10 6:34:41 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-721-2359"
2021-9-10 6:35:50 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-768-2478"
2021-9-10 6:36:6 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-768-2478"
2021-9-10 6:36:18 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-849-2257"
2021-9-10 6:58:37 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-717-1128"
2021-9-10 7:01:35 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-339-109"
2021-9-10 7:03:24 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-760-42"
2021-9-10 7:04:36 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-703-399"
2021-9-10 7:37:5 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-709-2255"
2021-9-10 7:39:56 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-779-1538"
2021-9-10 7:40:48 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-857-572"
2021-9-10 8:07:25 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-725-352"
2021-9-10 13:34:12 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="4-262-421"
2021-9-10 13:42:29 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-144-299"
2021-9-10 13:49:6 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-136-382"
2021-9-10 14:56:48 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-766-1946"
2021-9-10 14:58:10 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-742-1635"
2021-9-10 14:59:39 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-712-1098"
2021-9-10 14:59:51 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-712-1098"
2021-9-10 15:00:15 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="10-712-1098"
2021-9-10 15:00:59 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="E-8-86975"
2021-9-10 15:06:1 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-703-908"
2021-9-10 15:07:26 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-744-1101"
2021-9-10 15:10:47 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="5-708-2325"
2021-9-10 15:35:21 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-136-382"
2021-9-10 15:36:6 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-521-865"
2021-9-10 16:43:22 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="´8-782-2187"
2021-9-10 16:43:36 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-782-2187"
2021-9-10 16:47:41 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-734-1614"
2021-9-10 16:49:57 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-713-1835"
2021-9-10 16:51:27 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-740-2232"
2021-9-13 18:34:9 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="8-795-1115"
2021-9-14 13:10:16 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-166-145"
2021-9-16 11:27:45 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="1-700-186"
2021-10-1 13:59:14 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="2-717-1023"
2021-10-1 15:13:21 : llego sql SELECT  pers_codigo,pers_descripcion FROM 094melo_restaurantes.personal WHERE pers_cedula="9-711-1090"
