Trac currently creates the statement uses one JOIN for each custom field in Query. SQLite and MySQL have the limitation for joine tables. Therefore, database error will occur if custom fields are too many.