SELECT TS.Team_ID, S.*, SPN.*
FROM `team_sezon` AS TS
INNER JOIN `sezon` AS S ON(TS.Sezon_ID = S.Sezon_ID)
INNER JOIN `sport_name` AS SPN ON(S.Sport_ID = SPN.Sport_ID)
WHERE TS.Team_ID IN () AND TS.active_status = 1 GROUP BY S.Sezon_ID
ORDER BY S.Sezon_ID ASC
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND TS.active_status = 1 GROUP BY S.Sezon_ID
ORDER BY S.Sezon_ID ASC' at line 5; KOD: 1064last sezon name not found!