SELECT DISTINCT a.menu_id,a.parent_menu_id,a.alternate_pdf,a.pdf_temp_id,a.pdf_temp_select,a.frontenduser_list,b.side_menu FROM menus a, menus_name b WHERE parent_menu_id='1' AND b.side_menu = '0' AND a.menu_id = b.menu_id ORDER BY menu_pos ASC Can't create/write to file '/var/tmp/mysql.jvc80M/#sql_654_0.MYI' (Errcode: 2)