Некорректный запрос к БД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 gys_workers1.title ASC' at line 1 SELECT DISTINCT gys_workers1.title AS one_size FROM gys_modifys LEFT JOIN gys_workers1 ON gys_workers1.workers_id = gys_modifys.size WHERE gys_modifys.katalog = ORDER BY gys_workers1.title ASC