SELECT tfolderid, fpath as folderpath, tfilename, isdownload FROM tfolder where fpath in $fpath$ ORDER BY tfolderid