SELECT `u`.`id`, `u`.`name`, `u`.`url`, `u`.`price`, `u`.`model_id`, `u`.`kpp`, `u`.`engine`, `u`.`vin`, `m`.`name` as `model`, `u`.`id_used_photo`, `up`.`code_color`, `up`.`url_photo`, `up`.`color_hex`, `up`.`string_color`, `uth`.`value` as `motor`, `uth1`.`value` as `mosh`, `u`.`url` as `comp_url`, `m`.`url` as `model_url` FROM `used_model` `u` LEFT JOIN `model` `m` ON `u`.`model_id` = `m`.`id` LEFT JOIN used_photo `up` ON `up`.`id` = `u`.`id_used_photo` LEFT JOIN `used_tech` `uth` ON uth.um_id = u.id AND uth.har_id=6 LEFT JOIN `used_tech` `uth1` ON uth1.um_id = u.id AND uth1.har_id=7 WHERE `u`.`model_id` = AND `u`.`hide` = 0

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 'AND
		`u`.`hide` = 0' at line 26
/home/i/infotechtk/vw-fortuna/public_html/../core/classes/available_cars/available_cars.p(165:17)
sql/home/i/infotechtk/vw-fortuna/public_html/../core/classes/available_cars/available_cars.p(165:17)
tAuto/home/i/infotechtk/vw-fortuna/public_html/../core/classes/available_cars/available_cars.p(153:2)
model_devel/home/i/infotechtk/vw-fortuna/public_html/available_cars/available_modeltype.html(19:32)
top_menu/home/i/infotechtk/vw-fortuna/public_html/available_cars/available_modeltype.html(15:8)
content/home/i/infotechtk/vw-fortuna/public_html/auto.p(37:10)
code/home/i/infotechtk/vw-fortuna/public_html/../core/lib.p(9:18)
connect/home/i/infotechtk/vw-fortuna/public_html/../core/lib.p(9:2)
dbconnect/home/i/infotechtk/vw-fortuna/public_html/auto.p(33:11)