Allow Where condition in JOIN SQL statement

Would like to be able having a where condition into a JOIN statement like that:
SELECT book.title
FROM book INNER JOIN myParams ON book.chalet = myparam.chalet
WHERE myParams.userId = “id of the user”
AND myParams.fromDt >= book.fromDt
AND myParams.fromDt <= book.toDt)

The where condition is not allow in a JOIN sql from the SQL package. I am receiving this message:
“”“Unknown command. Please review the readme file to learn about the current supported features. Error triggered by: )”“”