0.0026 | SELECT c.id,c.ctype,c.alias as alias,l.current_round,l.group_code,l.total_group,c.name,l.total_rounds,l.year,lp.c_pending,lp.c_playing,lp.c_recent,lp.c_played,lp.c_future,lp.c_past,c.location,c.active_year, c.parentId, l.categoryId, l.start_date, l.end_date, c.logo, c.location FROM categories c INNER JOIN leagues l ON l.categoryId = c.id LEFT JOIN leagues_play AS lp ON l.categoryId=lp.categoryId AND lp.ini_date='2019-12-10 00:30:00' WHERE c.alias = 'liga_artzit_israel' AND c.active_year = l.year ORDER BY l.group_code ASC |