Error (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 '_iz_sosny.jpg' AND parent = (SELECT categoryID FROM ss_categories WHERE url LIKE' at line 1
SQL:
SELECT categoryID,name FROM ss_categories WHERE url LIKE 'Krovat'_iz_sosny.jpg' AND parent = (SELECT categoryID FROM ss_categories WHERE url LIKE 'user_files' AND parent = (SELECT categoryID FROM ss_categories WHERE url LIKE 'files' AND parent = (SELECT categoryID FROM ss_categories WHERE url LIKE 'мебель_из_сосны' AND parent = 1)))