For some reason I have problems with my INNER JOIN, it simply doesn’t work.
Here is my code
SELECT
`hold`.`id` AS `id`,
`hold`.`name` AS `name`
INNER JOIN `instruktorer`
ON `hold`.`ins` = `instruktorer`.`id`
FROM `hold`
The error I get is:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INNER JOIN `instruktorer` ON `hold`.`ins` = `instruktorer`.`id` FROM `hold`' at line 4
I make a INNER JOIN almost daily, but now I just cant get it to work.
Hope someone can help me
FROMmust come beforeINNER JOIN. Generally all queries have a defined order. For SELECT it goes like this