Bł±d: 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 cat_id, subcat_id' at line 18
Zapytanie: Select kategoria.id As cat_id, kategoria.name As cat_name, kategoria.seo As cat_seo, podkategoria.id As subcat_id, podkategoria.name As subcat_name, podkategoria.seo As subcat_seo From cat_desc kategoria Inner Join cat On cat.parent_id = kategoria.id Inner Join cat_desc podkategoria On podkategoria.id_cat = cat.id Inner Join cat subcat On subcat.id = podkategoria.id_cat Where cat.status = '1' And subcat.status = '1' And kategoria.id = 1 And podkategoria.id = Order By cat_id, subcat_id