b=
SELECT b.boat_id FROM `boats` b LEFT JOIN `boat_models` m ON m.model_id = b.model_id WHERE m.ModelName='/boats/2014 AP Aqua Patio AP 240' AND b.model_year=2014