You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and auto.id_mark=auto_mark.id
and auto.id_model=auto_model.id
and aut' at line 10
Уважаемые друзья!
Обращаю Ваше внимание, что пункты отмеченные звездочкой, обязательны для заполнения.