SELECT page.*,
    			CASE WHEN page.name = 'index' THEN
    			 0
     			ELSE
     			 1
    			END
     			 as flag
    			FROM page ORDER BY flag, node, orderby

MySQL ERROR(1033): Incorrect information in file: './richclub_db_tomsk/page.frm'
SELECT page.*,
    			CASE WHEN page.name = 'index' THEN
    			 0
     			ELSE
     			 1
    			END
     			 as flag
    			FROM page ORDER BY flag, node, orderby