Exception

Database Exceptionyii\db\Exception

SQLSTATE[42000]: Syntax error or access violation: 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 'JOIN model md ON md.equipment_id = eq.id
LEFT JOIN catalog ct ON ct.model_i' at line 4
The SQL being executed was:
SELECT cnt.pagetitle, cnt.alias, ct.desc, pt.id, pt.part_id, pt.stock, pt.price, br.name as brand_name
FROM equipment as eq
JOIN brand br ON eq.brand_id = br.id AND br.id =
LEFT JOIN model md ON md.equipment_id = eq.id
LEFT JOIN catalog ct ON ct.model_id = md.id
LEFT JOIN part pt ON ct.id = pt.catalog_id and pt.id IN ()
JOIN content as cnt ON cnt.id = pt.id LIMIT 40

Error Info: Array
(
    [0] => 42000
    [1] => 1064
    [2] => 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 'JOIN model md ON md.equipment_id = eq.id
					LEFT JOIN catalog ct ON ct.model_i' at line 4
)
$_GET = [
    'hyundai' => 'r110-7',
];