Try it with this query:
SELECT `toys`.`name`, `model`.`name`, IF (`model`.`name` IN ('robots', 'cops', 'truck'), 100, 10) AS price
FROM `toys`
LEFT JOIN `model`
ON `toys`.`model` = `model`.`name`
First of all: I used quotes and backticks in the query.
You can read the reason on this StackOverflow post
Always use them!
Second of all: no need to have 2 tables in the from
, if you're joining them.
Third of all: the solution you want, can be solved with the if function:
If the model name is one if these three, the price will be 100, otherwise it will be 10.