Ошибка базы данных при выполнении запроса: SELECT m.*, IF (m.material_file != '',m.material_file,m.material_id) AS material_cur_file, rm.rubric_id, c.*, c.level AS rubric_level ,material_owner_id ,owner.user_login AS material_owner_login ,owner.user_name AS material_owner_name ,material_author_id ,author.user_login AS material_author_login ,author.user_name AS material_author_name ,author.user_url AS material_author_url,pd.page_id ,pd.page_name ,pd.page_override_default ,pd.page_material_edit_type ,pd.page_material_responses ,pd.page_material_accom_images ,pd.page_generate_material ,pd.page_material_static_files ,pd.page_material_pos FROM rubric c INNER JOIN rubric_material rm ON c.rubric_id = rm.rubric_id INNER JOIN material m ON rm.material_id = m.material_id LEFT OUTER JOIN user owner ON material_owner_id = owner.user_id LEFT OUTER JOIN user author ON material_author_id = author.user_id LEFT OUTER JOIN page pd ON (m.material_file != 'index' AND c.rubric_material_page_id = pd.page_id) OR ( m.material_file = 'index' AND c.rubric_index = 'material' AND c.rubric_index_page_id = pd.page_id ) WHERE c.rubric_id =273 AND material_publish <>'-1'AND material_publish='1' GROUP BY m.material_id,c.rubric_id ORDER BY material_date DESC LIMIT 1 .
MySQL:Can't create/write to file 'C:\WINDOWS\TEMP\#sql_1064_0.MYD' (Errcode: 17)