Ингредиенты:


Неверный запрос select m.*, s.series_name, t.type_name from catalog_models m inner join catalog_series s on s.series_id=m.svar and s.is_show=1 inner join catalog_types t on t.type_id=s.type_id and t.is_show=1 where m.is_show=1 and m.svar= order by m.ord, m.model_name
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 'order by m.ord, m.model_name' at line 12