I've got a problem with my SQL query. I've been trying to extract some data from SQL but it seems that I've failed somewhere and I can't locate it

```
SELECT user_comments.*, 
    users.ID AS user_ID,
    users.username AS user_username,
    profiles.userID AS profiles_ID
    INNER JOIN users ON users.username = user_comments.author 
    INNER JOIN profiles ON profiles.userID = users.ID
    WHERE user_comments.img_id = 'b75962591b38b117b45d'

```

And the error is

> 
> 1064 - 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 users ON users.username = user\_comments.author 
>  INNER JOIN prof' at line 5
> 
> 
>