Не удалось выполнить запрос: (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 'and T3.id IS NOT NULL ORDER BY rows_num' at line 1Не удалось выполнить запрос: (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 'ORDER BY pos, name_main' at line 1